chrismademe / php-site-framework-2
PHP Framework for building interactive apps/websites
2.1.4-beta
2015-12-14 11:44 UTC
Requires
- twig/twig: ^1.22
- vlucas/phpdotenv: ^2.1
This package is not auto-updated.
Last update: 2024-10-26 19:05:19 UTC
README
- Clone this repo to your project folder
- Edit
package.json
with your project name and description. - Rename the default theme, found in
app/theme/default
to suit your project. - Update
app/config.php
with your new theme name. - PHPSF2 will attempt to copy
.env.example
for you. If this fails, copy and rename it to.env
.
Install Dependencies
npm install
composer install
Deploying
When you upload your site, make sure you're using the production
tag in .env
so that errors are not displayed on screen.
Theme Cache
Twig has the ability to cache rendered templates. To do so, it requires permissions to write to the cache folder. You can set a directory for caching in youe .env file. If you do, don't forget to chmod 775
on that directory.
To do
- Add Bower support