Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 225 | | All time: 8,218 This week: 673 |
|
Description | | Author |
This package is a microframework for Web application development.
It provides a set of classes for developing MVC based Web applications using PHP. Currently the package provides:
- Based classes for implementing controllers and models
- A dependency injection container, application event handling
- Debugging data
- Process request variables
- Perform database migrations
- Database query composition
- Uploaded file handling
- Send email
- ACL management
- Password hashing
- Template processing based on Twig or Smarty
- Data validation | |
|
Example
<?php
/**
* Springy web launcher script.
*
* @copyright 2007 Fernando Val
* @author Fernando Val <fernando.val@gmail.com>
*
* @version 5.2.0
*/
$springyStartTime = microtime(true); // Memoriza a hora do inÃcio do processamento
// Kill system with internal error 500 if initial setup file does not exists
if (!file_exists('sysconf.php') || !file_exists('helpers.php')) {
header('Content-type: text/html; charset=UTF-8', true, 500);
exit('Internal System Error on Startup');
}
// Load framework configuration
require 'sysconf.php';
// Load helper script.
require 'helpers.php';
// Define error handlers
error_reporting(E_ALL);
set_exception_handler('springyExceptionHandler');
set_error_handler('springyErrorHandler');
// Load Composer autoload
if (file_exists(sysconf('VENDOR_PATH') . DS . 'autoload.php')) {
require sysconf('VENDOR_PATH') . DS . 'autoload.php';
}
// Kill system with internal error 500 if can not set autoload funcion
if (!spl_autoload_register('springyAutoload', true, true)) {
header('Content-type: text/html; charset=UTF-8', true, 500);
exit('Internal System Error on Startup');
}
// System start
ob_start();
Springy\Kernel::initiate($GLOBALS['SYSTEM'], $springyStartTime);
if (count(ob_list_handlers())) {
ob_end_flush();
}
|
Details
Springy

A micro framework for smart PHP developers.
> WARNING!
>
> This project will be deprecated soon.
>
> The new major release 5 is under development.
>
> It will be not compatible with version 4, but comes with several new features and enhancements.
>
> You can follow new project at https://github.com/springy-framework
What is this
Springy is a micro MVC framework for coders who work with the PHP script language to develop web applications.
It was created based upon the KISS principle in which the simplicity is the base to good things.
Requirements
-
PHP 7.2+
-
Composer Dependency Manager for PHP
Language dependencies
How do I start?
Read the documentation:
Contributing
-
Fork it!
-
Create your feature branch: `git checkout -b my-branch`
-
Commit your changes: `git commit -m 'Description of your feature'`
-
Push to the branch: `git push origin my-feature`
-
Submit a pull request.
License
This project is licensed under The MIT License (MIT).
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.