All Projects → deanc → silex-starter-pack

deanc / silex-starter-pack

Licence: other
A starter pack for beginning development with the Silex PHP framework. Includes a basic admin control panel, and user login system.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to silex-starter-pack

Bolt
Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.
Stars: ✭ 4,136 (+34366.67%)
Mutual labels:  silex
Superleansilexplate
Silex Superlean Starter
Stars: ✭ 61 (+408.33%)
Mutual labels:  silex
Pimple
A small PHP dependency injection container
Stars: ✭ 2,491 (+20658.33%)
Mutual labels:  silex
Silex Kitchen Edition
This project is a sample or a bootstrap silex application
Stars: ✭ 645 (+5275%)
Mutual labels:  silex
Silex
Silex is a static website builder in the cloud.
Stars: ✭ 958 (+7883.33%)
Mutual labels:  silex
Payumserver
Payment processing microservice. Written in Symfony4
Stars: ✭ 103 (+758.33%)
Mutual labels:  silex
FacebookServiceProvider
Silex service provider that injects the Facebook SDK as a service
Stars: ✭ 28 (+133.33%)
Mutual labels:  silex
sm-groupcheck-web
GroupCheck web API.
Stars: ✭ 14 (+16.67%)
Mutual labels:  silex
Silex
something to help you spark
Stars: ✭ 61 (+408.33%)
Mutual labels:  silex
Transport
Swiss public transport API
Stars: ✭ 215 (+1691.67%)
Mutual labels:  silex
Silex Skeleton
A skeleton to get started with Silex
Stars: ✭ 805 (+6608.33%)
Mutual labels:  silex
Silexstarter
Starter app based on Silex framework with mvc and modular arch, scaffold generator, and admin panel
Stars: ✭ 11 (-8.33%)
Mutual labels:  silex
Php Getting Started
Getting Started with PHP on Heroku
Stars: ✭ 170 (+1316.67%)
Mutual labels:  silex
Pinboard
Realtime PHP monitoring system which aggregates and displays Pinba data.
Stars: ✭ 479 (+3891.67%)
Mutual labels:  silex
Slugify
Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.
Stars: ✭ 2,697 (+22375%)
Mutual labels:  silex
Silex
[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
Stars: ✭ 3,646 (+30283.33%)
Mutual labels:  silex
Crudlex
CRUDlex is an easy to use CRUD generator for Symfony 4 and Silex 2 which is great for auto generated admin pages
Stars: ✭ 102 (+750%)
Mutual labels:  silex
PHP-Frameworks-Bench
Popular PHP Frameworks Benchmark.
Stars: ✭ 28 (+133.33%)
Mutual labels:  silex
silex-ddd-skeleton
A simple skeleton of silex application using ddd arquitecture
Stars: ✭ 19 (+58.33%)
Mutual labels:  silex
Silex Webprofiler
Stars: ✭ 207 (+1625%)
Mutual labels:  silex

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

Admin Homepage

Installation

  • Create your project by typing the following command:
    composer create-project deanc/silex-starter-pack your-project-name dev-master
  • 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:
    ,"autoload": {
        "psr-0": {
            "DC\\SilexStarterPack": "src/"
            ,"YourName\\SomeProjectName" : "src/"
        }
    }
  • Copy app/config.default.php to a new file in the same directory called app/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:

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot "/Users/deanclatworthy/Projects/silex-starter-pack/web"
     <Directory "/Users/deanclatworthy/Projects/silex-starter-pack/web">
        Options -Indexes FollowSymLinks
        AllowOverride All
        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ /index.php [QSA,L]
        </IfModule>
    </Directory>
     ServerName ssp.dev
     ErrorLog "/private/var/log/apache2/silex-starter-pack.dev-error_log"
     CustomLog "/private/var/log/apache2/silex-starter-pack.dev-access_log" common
</VirtualHost>

(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:

$app->mount('/a', new YourName\Project\Controller\Admin\Project());

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:

$app['twilo']->send($from, $to, $text);

Reccommended Libraries

Author

Dean Clatworthy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].