Simple PHP5 Framework.
Table of Contents
I wrote and I use this framework for my own projects. All the modules are abstract layers that offer useful functionalities I needed. Unfortunately I do not provide exhaustive documentation. Please read the code and the comments.
Here the modules:
Cache storage interface using array or APC.
Encrypt and decrypt tool using Mcrypt extension and Rijndael and TripleDES cyphers (for the moment)
Work in progress.
This module contains classes that implements usefull methods for debugging and benchmarking. It use google chart to render few charts.
Foundation exception classes.
This module contains a class that offer a high-level object oriented interface to information and manipulation for an individual directory.
This module contains a usefull class for form validation.
This module contains classes that implements usefull methods for image manipulation.
This module contains a class that may register with the spl_autoload registry.
This module contains a logger.
This module contains:
- a download manager.
- an utility to manage client IP address.
This module contains classes that implements usefull methods to secure a session, like CSRF.
This module contains an utility class for handling $_SERVER data.
This module contains classes that allow a Type Declarations implementations. (Simple, Enum and Complex types)
This module contains classes that implements usefull methods to:
- read weather data from a file (Weather Underground,YR.no)
- convert wind speed units.
Developed on Windows 7 and requires PHP 5.5.37, APC User Cache 4.0.11, PHPUnit 3.7.38, composer.
Check if your PHP and extension versions match the platform requirements.
C:\Foundation>php composer.phar diagnose
and
C:\Foundation>php composer.phar check-platform-reqs
Install the required applications:
No dev:
C:\Foundation>php composer.phar install --no-dev
or for dev:
C:\Foundation>php composer.phar install
Unfortunately I do not provide exhaustive documentation. Please read the code and the comments.
You can generate documentation using phpdocumentor. It should be installed with composer.
C:\Foundation>./vendor/bin/phpdoc.bat -d src/Foundation -t docs/
Use PHPUnit. Each module has is own config.xml file. Go to tests/scripts and launch cmd files.
Thanks you for taking the time to contribute. Please fork the repository and make changes as you'd like.
As I use this framework for my own projects, it contains only the features I need. But If you have any ideas, just open an issue and tell me what you think. Pull requests are also warmly welcome.
If you encounter any bugs, please open an issue.
Be sure to include a title and clear description,as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
This project is open-source and is licensed under the MIT License.