shroophp / restful
A library for building RESTful applications with ShrooPHP.
Installs: 145
Dependents: 2
Suggesters: 1
Security: 0
Stars: 0
Forks: 0
pkg:composer/shroophp/restful
Requires
- php: >=7.1
- shroophp/framework: ^3.0 || ^2.1
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^4.8
- shroophp/psr: ^1.0
This package is not auto-updated.
Last update: 2025-09-28 14:26:31 UTC
README
A PHP library for building RESTful applications.
Installation
composer require 'shroophp/restful ^1.0'
Example Usage
<?php
use ShrooPHP\Framework\Application;
use ShrooPHP\RESTful\Collections\HashTable;
use ShrooPHP\RESTful\Resources\Immutable;
use ShrooPHP\RESTful\Request\Handler;
require 'vendor/autoload.php';
$collection = new HashTable;
$handler = new Handler($collection);
$resource = new Immutable('Hello, world!', 'text/plain');
$collection->put('/', $resource);
(new Application)->push($handler)->run();