2017 © Pedro Peláez
 

library silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

image

mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  • Wednesday, April 12, 2017
  • by mathcale
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 3 % Grown

The README.md

Silex Base Project

Packagist, (*1)

A simple Silex 2.x base project with authentication, routing, twig templates, env. variables and some other cool stuff., (*2)

Requirements

  • PHP >= 5.5.9
  • Composer
  • Apache Web Server

NOTE: If you're using another webserver, take a look at the official documentation on how to properly set it up., (*3)

Running the app

  1. Clone the repo or get it from Packagist by running composer create-project --prefer-dist mathcale/silex-base-project on your websever root (e.g. /var/www/html ou C:/wamp/www)
  2. cd silex-base-project
  3. Edit the .env file with necessary info (database credentials, debug mode...)
  4. Start your web server and go to the project's url (e.g. http://localhost/silex-base-project)
  5. Have fun using Silex!

Creating the database

Now you can create a database schema by running the make:db command. To accomplish that, cd to the project's root and run php bin/console make:db --name DB_NAME, where DB_NAME == the name you want for your database., (*4)

If you already have a database, don't forget to change the SQL queries at src/Controllers/AuthController.php to match your schema., (*5)

ProTips(tm)

  • If you want to use npm packages, make sure to update your .gitignore with the node_modules folder
  • If you have cloned the repo, run composer install to download the project dependencies and then create the .env file by running php -r "file_exists('.env') || copy('.env.example', '.env');"
  • If you used bin/console to create your database, the default login credentials are 'admin' and '123456' (encrypted using $app['security.encoder.digest']->encodePassword())

Contributing

Open Source projects are made for the community and by the community. It would be nice to have more people interacting and helping to improve this codebase. So, feel free to open (actual) issues and send pull requests if you fixed/implemented something., (*6)

License

MIT License, (*7)

Copyright (c) 2017 Matheus Calegaro, (*8)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*9)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*10)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*11)

The Versions

12/04 2017

dev-master

9999999-dev https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

12/04 2017

1.2.3

1.2.3.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

19/02 2017

1.2.2

1.2.2.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

13/02 2017

1.2.1

1.2.1.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

13/02 2017

1.2

1.2.0.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

10/02 2017

1.1.4

1.1.4.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

09/02 2017

1.1.3

1.1.3.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

09/02 2017

1.1.2

1.1.2.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

08/02 2017

1.1.1

1.1.1.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

06/02 2017

dev-dev-authentication

dev-dev-authentication https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

06/02 2017

1.1.0

1.1.0.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

01/02 2017

1.0.2

1.0.2.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

26/01 2017

1.0.1

1.0.1.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base

26/01 2017

1.0

1.0.0.0 https://github.com/mathcale/silex-base-project

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

  Sources   Download

MIT

The Requires

 

bootstrap silex base