corephp / slim-scafold
A Slim Framework skeleton application for rapid development
1.3.0.0
2019-03-13 20:40 UTC
Requires
- php: >=7.1
- monolog/monolog: ^1.23
- slim/slim: ^3.1
Requires (Dev)
- phpunit/phpunit: >=4.8 < 6.0
- squizlabs/php_codesniffer: ^3.3
Suggests
- corephp/mailer: Provides simple implementation of mailing
- corephp/slim-eloquent: Necesary to add database connections with Eloquent
- mittwald/psr7-validation: Validate request with JSON schema
- predis/predis: To get Redis as dependency for cache
- ramsey/uuid: To generate uuid tokens with JWT
- slim/twig-view: Necesary to add view rendering support
- tuupola/cors-middleware: Easy way to add CORS
- tuupola/slim-jwt-auth: JWT authentication
README
This is a Slim preconfigured project to create a MVC or API projects based on the slim/Slim-Skeleton repository from Slim Framework.
Requirements
- Composer
- Docker
- Docker Compose
- AWS-cli
- PHP >= 7.1
- PHP pgsql extension
- PHP pdo_pgsql extension
Dependendies
Container specifications
- Image: webdevops/php-nginx:7.3
Namespaces
Install the Application
Yu can install it from the slimcmd tool with this command:
slimcmd app:init [app-name]
Replace [app-name]
with the desired directory name for your new application. You'll want to:
- Point your virtual host document root to your new application's
public/
directory. - Ensure
logs/
is web writeable.
Install project
composer install
Run the aplication
docker-compose up
Deploy app with AWS Pipelines and AWS ECS
Configure yur build steps into buildspect.yml file with your AWS ECR information and setup the service configurations into imagedefinitios.json file according to the AWS Documentation