sadok-f / silex-simple
A simple project structure to get start with Silex
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- silex/silex: ~2.0
- silex/web-profiler: ~2.0
- symfony/config: ^3.0
- symfony/debug: ^3.0
- symfony/yaml: ^3.0
This package is auto-updated.
Last update: 2024-12-11 20:07:19 UTC
README
A simple project structure to get start with Silex
Installation:
$ composer create-project sadok-f/silex-simple
Browsing the Demo Application:
$ php -S localhost:8888 -t web/ web/index_dev.php
Then, browse to http://localhost:8888/ or Then, browse to http://localhost:8888/MyName
Getting started with Silex:
- Create a new Controller that extend the CoreController, example
Core\Controller\ContactController
- Add a new entry in
config/routing.yml
, example :
contact_us_:
path : /contact-us
defaults: { _controller: 'Core\Controller\ContactController::contactAction' }