Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sadok-f/silex-simple
A simple structure to get start with Silex
https://github.com/sadok-f/silex-simple
micro-framework microservice silex
Last synced: 24 days ago
JSON representation
A simple structure to get start with Silex
- Host: GitHub
- URL: https://github.com/sadok-f/silex-simple
- Owner: sadok-f
- Created: 2016-03-09T09:24:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-29T22:57:17.000Z (almost 8 years ago)
- Last Synced: 2024-05-05T21:41:55.678Z (6 months ago)
- Topics: micro-framework, microservice, silex
- Language: PHP
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Silex-Simple
A simple project structure to get start with SilexInstallation:
-------------$ 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' }
```