phpneeds / phpneeds
PHPneeds is a lightweight non-MVC PHP library for quickly start a project.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.0
- ext-imagick: *
- ext-json: *
- ext-pdo: *
- ext-pdo_mysql: *
- ext-redis: *
- phpneeds/libs: *
README
PHPneeds is a lightweight non-MVC PHP library for quickly start a project.
About
PHPneeds is an attempt to show that it's not necessary to use MVC and FRAMEWORK in every project, it can be done also old-school way without spaghetti.
Installation
"--keep-vcs" is important for upgrade the prject from git.
composer create-project phpneeds/phpneeds {your_project_name} --keep-vcs
NGINX Rewrite Rules
for image.php
rewrite "^/assets/images/(.*)-w=([0-9]{1,4})-h=([0-9]{1,4})-q=([0-9]{1,4})-c=([0-1]{1,4}).jpg$" /assets/images/image.php?f=$1&w=$2&h=$3&q=$4&c=$5;
Upgrade
Composer cannot upgrade packages of type "project". You can upgrade this project files with "git".
important: Directory structure may change after upgrade via git
git pull origin tags/v{version}
Classes will be upgrade via Composer. Because, "Libs" separated from base project
composer update
Author
License
The code for PHPneeds is distributed under the terms of the MIT license (see LICENSE).