discophp / project
4.0.0
2016-07-13 23:56 UTC
Requires
- discophp/framework: 4.0.0
This package is not auto-updated.
Last update: 2024-11-09 16:22:01 UTC
README
This is the project structure for the Disco PHP Framework. It serves as the starting point for all Disco PHP projects.
Check out the documentation
Out Of The Box Features
The base project structure comes preloaded with some awesome out of the box features which almost every project implements:
-
Account/User:
- Account creation
- Email based account verification
- Login, logout, and session management
- Securly stored passwords hashed with SHA512 and salted
- Permanent logins
- Password reset emails
- Account information editing
- CSRF Tokens
- An amazing looking base theme/UI for you to extend using Materialize CSS
- A build system (
Gruntfile.js
) implemented using Grunt which supports:- SASS
- React JSX files
- CSS vendor based auto-prefixing (ie -moz -webkit)
- CSS & JS minification
- CSS & JS bundling
- Version controlled third party libraries (
bower.json
&.bowerrc
) via Bower - Default caching rules for resources (ie jpg,png,js,css etc) as defined in
public/.htacces
Get Started
Required:
- Clone :
git clone https://github.com/discophp/project.git your-site
- Install Dependencies :
composer install
Optional (but required if you want to use the DB & the built in user functionality):
- Configure DB settings in
app/config/config.php
- Create the user tables :
php public/index.php db-restore 'app/db' 'user_structure.sql'
from the SQL fileapp/db/user.sql
- Configure your email settings in
app/config/email.php
Optional (but required if you want to use the build system)
- Install nodejs dependencies :
npm install
- Run the build system :
grunt
- Watch the build for changes :
grunt watch