sgasser / smicro
Micro-framework based on Symfony
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6.0
- ext-intl: *
- ext-mbstring: *
- incenteev/composer-parameter-handler: ^2.1
- sensio/distribution-bundle: ^5.0
- symfony/monolog-bundle: ^3.0
- symfony/symfony: ^3.2
Requires (Dev)
- symfony/phpunit-bridge: ^3.2
This package is auto-updated.
Last update: 2024-05-06 19:39:54 UTC
README
Micro-framework based on Symfony - Fast micro-services and APIs delivered with the elegance you expect.
Smicro is the perfect solution for building Symfony based micro-services and fast APIs. In fact, it's nearly twice as fast as Symfony Standard.
What's included
Symfony3 with MicroKernel using MicroKernelTrait
Bundles registered in the MicroKernel
- FrameworkBundle
- MonologBundle
- WebProfilerBundle (DEV)
Create project
composer create-project sgasser/smicro
Usage
Structure - common files
- app
- config
- routing.yml
- services.yml
- config
- src
- tests
Start local server
php bin/console server:run
Run tests
vendor/bin/phpunit
Deploy
Smicro is ready for the cloud
Heroku
Visit http://heroku.com/ to set up an account.
Initialize local GIT
git init
git add .
git commit -m 'Initial commit'
Create heroku app
heroku create
Set config
heroku config:set SYMFONY_ENV=prod
Push
git push heroku master
Open app
heroku open