Download the PHP package deanc/silex-starter-pack without Composer
On this page you can find all versions of the php package deanc/silex-starter-pack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deanc/silex-starter-pack
More information about deanc/silex-starter-pack
Files in deanc/silex-starter-pack
Package silex-starter-pack
Short Description A boilerplate to get started with silex
License MIT
Homepage https://github.com/deanc/silex-starter-pack
Informations about the package silex-starter-pack
Silex Starter Pack
The Silex Starter Pack is a simple bootstrap to help you begin your project with Silex. It includes:
- An admin login system and control panel (styled mostly using Bootstrap)
- A very basic user authentication system allowing for sign up/log in/log out with users coming from a database.
- A console application allowing quick and easy development of console tasks
Screenshot
Installation
-
Create your project by typing the following command:
- Decide on your any namespaces you are going to want to autoload and create the relevent directory structure under the
src
directory. -
Open up composer.json and adjust the
autoload
section to load your new namespace. An example would be: - Copy
app/config.default.php
to a new file in the same directory calledapp/config.php
and fill in the configuration values. - Run
composer install
- Set up your vhost:
Build in PHP web-server quick start instructions:
Navigate into the web directory and type php -S 127.0.0.1:8080
Apache instructions:
(Nginx instructions coming soon...)
- Go to
http://ssp.dev
or whatever you set up your vhost as and your basic application should be loaded.
Admin Control Panel
The admin control panel is located at http://ssp.dev/a/
. If you want to add any new admin controllers add them under your own namespace such as YourName\Project\Controller\Admin\Project.php
for a Project
admin controller. Then mount it in index.php like so:
Bonus stuff
Twilio
If you want to use Twilio require their library:
composer require twilio/sdk
Enable the utility in app/config.php
:
define('TWILIO_ENABLED', true);
Use it as follows:
Reccommended Libraries
- Pagination: "soup/paginator" https://packagist.org/packages/soup/paginator
- Mailing: "swiftmailer/swiftmailer" https://packagist.org/packages/swiftmailer/swiftmailer
Author
All versions of silex-starter-pack with dependencies
silex/silex Version ~2.0
symfony/twig-bridge Version 3.2.*
symfony/translation Version 3.2.*
symfony/config Version 3.2.*
symfony/yaml Version 3.2.*
symfony/form Version 3.2.*
symfony/validator Version 3.2.*
symfony/console Version 3.2.*
symfony/security Version 3.2.*
doctrine/dbal Version ^2.5
twig/twig Version >=1.8,<2.0-dev