rakshazi / slim-skeleton
There is no license information available for the latest version (1.1.3) of this package.
1.1.3
2017-07-25 10:27 UTC
Requires
- akrabat/rka-slim-session-middleware: ^2.0
- components/bootstrap: ^3.3
- kanellov/slim-twig-flash: ^0.2.0
- monolog/monolog: ^1.22
- rakshazi/slim-suit: @stable
- sentry/sentry: ^1.6
- slim/flash: ^0.2.0
- slim/twig-view: ^2.2
README
Project
composer create-project rakshazi/slim-skeleton
Docker
NOTE: this docker image is production ready and works only with SSL for production and with SSL and without it for dev env.
- Change
your.site
domain indocker-compose.yml
anddocker-compose-prod.yml
to your domain - Run docker-compose:
#For development docker-compose up #For production docker-compose -f docker-compose-prod.yml up -d
Composer dependencies, migrations, and DB will be created automaticaly
Docker - which image to choose?
rakshazi/slim-skeleton
(Dockerfile)
@deprecated: that file will be removed in future, but you still can use it
Must be used for development only. Includes composer with dependencies in it. composer update
runs on container start
quay.io/rakshazi/slim-skeleton
(Dockerfile.quay)
Full-featured image without composer and its dependencies. composer update
should be run on build stage.
Example of Dockerfile for your usage (if you dont want to build base image yourself):
FROM composer/composer:alpine COPY ./ /app RUN composer update --ignore-platform-reqs --no-ansi --no-dev \ --no-interaction --no-progress --no-scripts --optimize-autoloader \ -d /app FROM quay.io/rakshazi/slim-skeleton MAINTAINER Your Name <your.name@your.site> COPY --from=0 /app/ /var/www/
Documentation
Backend
- App - Slim Framework: slimframework.com/docs/ + rakshazi/slim-suit + akrabat/rka-slim-session-middleware
- ORM - Medoo: medoo.in/doc
- Migrations, seeds - Phinx: docs.phinx.org
- Exception handling - Sentry.io: docs.sentry.io
- Session storage - Redis: redis.io
Frontend
- Rendering engine - Twig: twig.sensiolabs.org + slim/flash + kanellov/slim-twig-flash
- Framework - Twitter Bootstrap: getbootstrap.com + jQuery