Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Silex-Simple
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' }
```