suzano / spreng
Spring Framework Inspired for PHP Development Engine
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/suzano/spreng
Requires
- php: ^7.2
- firebase/php-jwt: ^5.2.0
- monolog/monolog: ^2.0.0
- twig/twig: ^3.0
This package is auto-updated.
Last update: 2025-10-11 03:34:34 UTC
README
PHP Development engine inspired by JAVA's Spring Framework
Requirements:
- PHP 7.2
- Apache 2.4.xx
- Composer version 1.10.x
- psr-4 compliant (your composer.json should look like this)
{ ... "require" : { "suzano/spreng" : "^1.0.0-beta" }, "autoload" : { "psr-4" : { "AppName" : "folder/" } } ... }
Installation
Install dependency.
$ composer require suzano/spreng
Obs: Note that it will install also twig/twig, firebase/php-jwt and monolog/monolog as third-party.
Create a new file index.php in your root folder
<?php use Spreng\MainApp; require_once 'vendor/autoload.php'; MainApp::init();
Once you run localhost Spreng will create:
- /.htaccess and /application.json config files.
- /folder source folder.
- /folder/MyFirstController.php sample ready to work. If everything went ok you should see the following message on your browser:
After clicking refresh a Hello World page will be loaded.