I have just created a new project with CodeIgniter. I tried to run this command to run the server:
php spark serve
But it is giving me this error:
PHP Warning: require(/mnt/e/dev/learning/php/codeigniter/001/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php): failed to open stream: No such file or directory in /mnt/e/dev/learning/php/codeigniter/001/spark on line 44
PHP Fatal error: require(): Failed opening required '/mnt/e/dev/learning/php/codeigniter/001/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='.:/usr/share/php') in /mnt/e/dev/learning/php/codeigniter/001/spark on line 44
How can I run this command
PHP version 7.2 or newer is required, with the intl
extension and mbstring
extension installed.
The following PHP extensions should be enabled on your server: php-json, php-mysqlnd, php-xml
And then follow below steps to install and run CI 4 project:
composer create-project codeigniter4/appstarter project-root
composer clearcache
composer update
php spark serve
Note: clear composer cache before updating composer. For detail info follow CI documentation