https://github.com/danielm/silex-skeleton-app
Base Silex Application (skeleton) to get a new project going and organize the code (my approach)
https://github.com/danielm/silex-skeleton-app
Last synced: about 1 year ago
JSON representation
Base Silex Application (skeleton) to get a new project going and organize the code (my approach)
- Host: GitHub
- URL: https://github.com/danielm/silex-skeleton-app
- Owner: danielm
- License: mit
- Created: 2014-04-06T03:13:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T18:00:00.000Z (almost 10 years ago)
- Last Synced: 2025-03-26T07:51:14.833Z (over 1 year ago)
- Language: PHP
- Size: 36.1 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
#Silex Skeleton Application
Base Silex Application (skeleton) to get a new project going and organize the code (my approach)
Distributed under the MIT license.
Created by Daniel Morales. [Contact Me](mailto:daniminas@gmail.com) for more info or anything you want :)
##Install
```
$ git clone http://github.com/danielm/silex-skeleton-app
$ cd silex-skeleton-app
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
```
##Basics
###Configuration Files
* ```config/general.yml```: Basic configuration vars. Use ```$app['config']->get('varName')``` on your controllers to access your custom configuration variables.
###Controllers
```src/App/Controller/*.php```: Check ```config/general.yml``` out to map routes/controllers.
###Views
```views/*.html.twig```: Designers corner
###Custom Twig Extensions (Functions and Filters)
```src/App/TwigExtensions.php``` Basic extension to add custom Twig functions and filters.