/03-adminpro-api

Primary LanguagePHPMIT LicenseMIT

CodeIgniter 4

php spark serve

Server Requirements

PHP version 7.4 or higher is required, with the following extensions installed:

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • xml (enabled by default - don't turn it off)
  • mysqlnd

Running CodeIgniter Tests

Information on running the CodeIgniter test suite can be found in the README.md file in the tests directory.


PUBLICAR en server compartido:

PHP >= 7.4.

cors:

https://github.com/agungsugiarto/codeigniter4-cors composer require agungsugiarto/codeigniter4-cors

modificar .env

CI_ENVIRONMENT = production app.baseURL = 'https://sprint09.cerolab.com/'

database.default.hostname = etzpmvnbob.mysql.db ... database.default.DBDriver = MySQLi

modificar public/.htaccess

RewriteRule ^(.*)$ index.php?/$1 [L]


vendor folder for deployment

Then building (I use Bamboo, but a shell script would do):

  1. clone the repository to a directory
  2. running composer install to install all packages (including development packages)
  3. running phpunit to go through all the tests
  4. running composer --no-dev update to remove all composer packages that are for development and testing
  5. deleting my own tests directory