restapix/resta

resta php api restfull framework

This package's canonical repository appears to be gone and the package has been frozen as a result.

dev-master 2019-04-19 13:09 UTC

This package is not auto-updated.

Last update: 2019-04-19 13:10:12 UTC


README

Build Status Total Downloads License Latest Unstable Version

Resta - A Great Php Api Designer

Note: The repository contains core of the resta. The resta core is a fully open source and will be continuously developed. So that we will work with the help of your pull requests to make the core more stable.

Code of Conduct

Please review Code of Conduct. The resta core we will work together as much as we can to bring it to a better structure. the resta is very nice and very comfortable to write a better api code. We are pleased to present this to the community.

How to work the resta core?

Note: The resta core works in complete harmony by means of the skeleton repository. If you want,you can create your api structure with keep track of the core application box.

Resta core consists of a stable box. This box is defined as Application Box. This class works with the same determination all over the place.The application box is in the role of igniter for running a set of kernel classes. The skeleton repository integrates this magical box perfectly into itself and forms the resta structure.

For example, you can write as follows.


require_once '../vendor/autoload.php';
use Resta\Foundation\Application

$app = new Application(true);

As you can see above, the application object will return itself in a super-fast way without error. One issue you should be aware of is that the resta kernel is directly dependent on the composer.json file. Therefore, you must install its dependencies via composer before using the application object.

Now let's make a small example to show what can be done with this magic box. In this example,lets install an array as a configuration,then let's read these values.


require_once '../vendor/autoload.php';
use Resta\Foundation\Application

$app = new Application(true);

//set array values via loadConfig method
$app->loadConfig(function()
{
    return ['test' => ['value1' => 'foo','value2'=>['nested1' => 'nestedValue1']]];
});

//let's read these values via config helper method
config('test.value1);
config('test.value2.nested1');

How to learn resta?

The resta has a perfectly written Documentation.If you have a php framework habit depending on your quick learning ability. Do not worry. You will be able to learn very easily the resta and use it with peace of mind.

Resta includes the following components.

and the resta provides support from many powerful components.

Security Vulnerabilities

If you discover a security vulnerability within Resta, please send an e-mail to Ali Gürbüz via galiant781@gmail.com. All security vulnerabilities will be promptly addressed.

License

The resta api designer is open-sourced software licensed under the MIT license.