PHP Classes

Springy: Microframework for Web application development

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 225 All time: 8,218 This week: 673Up
Version License PHP version Categories
springy 4.4.1MIT/X Consortium ...7.3PHP 5, Libraries
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

Picture of Fernando Val
  Performance   Level  

 

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

Build Status StyleCI Codacy Badge

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

  1. Fork it!
  2. Create your feature branch: `git checkout -b my-branch`
  3. Commit your changes: `git commit -m 'Description of your feature'`
  4. Push to the branch: `git push origin my-feature`
  5. Submit a pull request.

License

This project is licensed under The MIT License (MIT).


  Files folder image Files (155)  
File Role Description
Files folder imageapp (2 files, 5 directories)
Files folder imageconf (6 files, 2 directories)
Files folder imagedocumentation (3 files, 2 directories)
Files folder imagemigration (1 file, 1 directory)
Files folder imagespringy (21 files, 11 directories)
Files folder imagetests (7 directories)
Files folder imagevar (2 directories)
Files folder imagevendor (1 file)
Files folder imagewww (7 files)
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file components.php Example Example script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:225
This week:0
All time:8,218
This week:673Up