All Projects → oanhnn → slim-skeleton

oanhnn / slim-skeleton

Licence: MIT license
Slim Framework skeleton application following MVC construction

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
ApacheConf
554 projects
CSS
56736 projects
coffeescript
4710 projects

Projects that are alternatives of or similar to slim-skeleton

php-skeleton
A skeleton to start new high-quality PHP projects without worrying about bootstrapping everything from scratch.
Stars: ✭ 23 (+27.78%)
Mutual labels:  skeleton, phpunit, phpcs
REST-Api-with-Slim-PHP
REST API with PHP Slim Framework 3 and MySQL
Stars: ✭ 69 (+283.33%)
Mutual labels:  monolog, slim-framework
annotate-pull-request-from-checkstyle
cs2pr - Annotate a GitHub Pull Request based on a Checkstyle XML-report within your GitHub Action
Stars: ✭ 146 (+711.11%)
Mutual labels:  phpunit, phpcs
gulp-nunjucks-boilerplate
A scalable Gulp generated Nunjucks boilerplate.
Stars: ✭ 14 (-22.22%)
Mutual labels:  gulp, skeleton
gulp-xo
Validate files with XO
Stars: ✭ 37 (+105.56%)
Mutual labels:  gulp
wpcs-docs
WordPress Coding Standards Docs
Stars: ✭ 59 (+227.78%)
Mutual labels:  phpcs
yii2-monolog
Yii 2 Monolog extension
Stars: ✭ 39 (+116.67%)
Mutual labels:  monolog
buildozer
🚜 Build tool which simplify your buildprocess. Built with Gulp.js 🥤
Stars: ✭ 22 (+22.22%)
Mutual labels:  gulp
starterkit
A Front End development Gulp.js based workflow. 🚀
Stars: ✭ 88 (+388.89%)
Mutual labels:  gulp
javascript-seed-project
Seed project for JavaScript based apps. Just clone and code.
Stars: ✭ 17 (-5.56%)
Mutual labels:  skeleton
Slim-Restrict-Route
A Slim middleware to restrict ip addresses that will access to your routes
Stars: ✭ 21 (+16.67%)
Mutual labels:  slim-framework
bash-framework
◼️ speed up your shell script development and add a modern look and feel (alpha version) ✨ 💫
Stars: ✭ 21 (+16.67%)
Mutual labels:  skeleton
slim-boilerplate
A simple Slim Framework based website boilerplate, pre-configured with commonly used components.
Stars: ✭ 17 (-5.56%)
Mutual labels:  slim-framework
gulp-rev-versions-bundle
A bundle that allows symfony to get the version of assets versioned with gulp-rev
Stars: ✭ 13 (-27.78%)
Mutual labels:  gulp
next-all-in
🗃⚛️ Next starter for creating any type of site
Stars: ✭ 29 (+61.11%)
Mutual labels:  skeleton
Forward-Framework
A killer WordPress theme framework built using underscores, gulp, sass, bourbon neat, bower & browsersync.
Stars: ✭ 23 (+27.78%)
Mutual labels:  gulp
wordpress-eloquent
A library that converts converts wordpress tables into Laravel Eloquent Models.
Stars: ✭ 129 (+616.67%)
Mutual labels:  slim-framework
magento-2-gulp
Gulp for Magento 2. It works with core Magento styles (less) and structure. Uses default theme configs from dev/tools/grunt/configs/local-themes.js.
Stars: ✭ 37 (+105.56%)
Mutual labels:  gulp
monolog-gdpr
Some Monolog processors that help with GDPR compliance
Stars: ✭ 49 (+172.22%)
Mutual labels:  monolog
electron-pixijs-typescript
Sample using Electron, Pixi.JS and TypeScript to make a game app that runs on browser and on desktop.
Stars: ✭ 25 (+38.89%)
Mutual labels:  gulp

Slim Skeleton

Build Status Latest Stable Version Total Downloads License

Join the chat at https://gitter.im/oanhnn/slim-skeleton

A skeleton for Slim Framework v3 following MVC pattern.

Main features

  • Support logging follow PSR-3 with Monolog
  • Support template engines: PHP view, Twig (default PHP view)
  • Support database accessing with Doctrine DBAL, CakePHP Database (support MySql, Postgresql, SQLite, ...)
  • Support middlewares: Basic & Digest Authentication
  • Support providers, easy to integrate with slim/http-cache, slim/csrf, slim/flash
  • Support making database test and integration test with PHPUnit
  • Support coding style check with PHPCS
  • Support auto deploy with Deployer
  • Support using Gulp task to compile SASS, ES6, CoffeeScript, ...

Directories structure

path/to/project
|-- app
|   |-- assets
|   |-- config
|   |-- lang
|   `-- templates
|-- public
|-- src
|-- tests
|-- tmp
|   |-- cache
|   `-- logs
`-- vendor

Requirements

  • PHP 5.5+
  • [Composer][compoer]
  • npm (If using gulp to build assets)

Usage

Create project

Using composer to create new project:

$ composer create-project oanhnn/slim-skeleton path/to/project --prefer-dist

Run PHP built-in server

Run a built-in server on 0.0.0.0:8888

$ php -S 0.0.0.0:8888 -t public public/index.php

Open web browser with address http://localhost:8888

Check coding style and test

$ ./vendor/bin/phpcs
$ ./vendor/bin/phpunit

Build assets with gulp, npm

You can use Gulp to compile SASS, ES6, CoffeeScript, ...

$ npm install
$ npm run-script build

Run a task with gulp

$ node_modules/.bin/gulp <task>

Deploy project

You can use Deployer to deploy project.
Copy and edit server's information from deploy.php.dist file to deploy.php file.
After that, you can run:

$ composer require deployer/deployer:^3.3.0 --dev
$ ./vendor/bin/dep <stage>

See an example in here.

Changelog

See all change logs in CHANGELOG.md

Contributing

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the PSR-2.

If you would like to help take a look at the list of issues.

License

This project is released under the MIT License.
Copyright © 2013-2016 Oanh Nguyen.
Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].