MicroApi Core is an ultra-lightweight, tiny engine based on Symfony packages.
MIT License
MicroApi Core is an ultra-lightweight, tiny engine based on Symfony packages. It is intended for building small REST API applications. Since MicroApi is based on the Symfony architecture, it can be developed to any level of complexity if desired. Forming your application based on this engine, you will always be sure that there is nothing superfluous in your code.
Features of MicroApi Core out of the box:
It's very simple! Just run these two commands:
composer create-project reiterus/microapi-core folder && cd folder
make docker-start
That's all! Now your API app is available at http://localhost:8008
For the convenience of working with the project, there are several make-commands: local and for Docker.
./vendor/phpunit/phpunit/phpunit
./vendor/bin/php-cs-fixer fix
./vendor/bin/phpstan analyse
cd public/ && php -S 127.0.0.1:8008
rm -rf var/ && rm -rf vendor/
docker-compose up -d --build && docker-compose exec api composer install
rm -rf var/ && rm -rf vendor/ && docker-compose up -d --build && docker-compose exec api composer install
docker-compose up -d --build
docker-compose exec api composer install
docker-compose down
docker rm $(docker ps -aq) -f
docker rmi $(docker images -aq) -f
You can install the project in two ways
From packagist.org
composer create-project reiterus/microapi-core
From GitHub repository
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/reiterus/microapi-core.git"
}
]
}
This library is released under the MIT license.