Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/envms/osseus
A modern lightweight framework to integrate with legacy code and applications
https://github.com/envms/osseus
api fluentpdo framework legacy library php toolkit
Last synced: about 2 months ago
JSON representation
A modern lightweight framework to integrate with legacy code and applications
- Host: GitHub
- URL: https://github.com/envms/osseus
- Owner: envms
- License: gpl-3.0
- Created: 2018-05-16T20:34:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T12:17:13.000Z (over 3 years ago)
- Last Synced: 2024-04-16T21:42:50.715Z (9 months ago)
- Topics: api, fluentpdo, framework, legacy, library, php, toolkit
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![Maintainability](https://api.codeclimate.com/v1/badges/cf807c36168b7242a576/maintainability)](https://codeclimate.com/github/envms/osseus/maintainability)
Osseus
Upgrade Your Legacy PHP CodeOsseus is a light and tiny PHP framework/library that integrates with any application.
It provides both a RESTful API and a more "traditional" service to support incremental
code improvements.Osseus can be used as a full-featured application framework, or simply as a utility
library to help your application scale. Its goal is to be flexible and impartial to
code and database structures.### Features
- light and fast router with a smart URI parser
- built-in security tools to validate and sanitize data
- interfaces with [FluentPDO](https://github.com/envms/fluentpdo) to provide quick
and seamless database interactions
- an internationalization template system to implement new languages quickly and easily
- classic MVC system with some small additions### Contributions
Contributors are very welcome to help test and improve Osseus
### Usage
To get started, all you need is a little setup:
```php
// add necessary classes
use Envms\Osseus\Dev\Debug;
use Envms\Osseus\Parse\Uri;
use Envms\Osseus\Router\Route;
use Envms\Osseus\Server\Environment;// set your environment
$environment = Environment::instance(Environment::DEVELOPMENT); // the current environment
$debug = Debug::instance(Environment::TESTING); // the maximum environment to show debug statements// optional but recommended - parse the URI and route to the index controller
$uri = new Uri($_SERVER['REQUEST_URI']);
$router = new Route('TestApp');
$router->go($uri);
```The router will direct the `$uri` to your application's controller and action, and you're on your way!
#### The current version is beta-2 (v0.4.3)