Registry / web-framework / friendsofsymfony-rest-bundle

friendsofsymfony-rest-bundle

JSON →
library3.9.0phppackagistunverified

This Bundle provides various tools to rapidly develop RESTful API's with Symfony.

composer require friendsofsymfony/rest-bundle
INSTALL
IMPORT
SIG · FRIENDSOFSYMFONY-R
F
friendsofsymfony-rest-bundle
web-frameworkphpv3.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AbstractFOSRestController
use FOS\RestBundle\Controller\AbstractFOSRestController;

Creates a RESTful controller returning JSON.

use FOS\RestBundle\Controller\AbstractFOSRestController; use FOS\RestBundle\View\View; class ApiController extends AbstractFOSRestController { public function getAction(): View { $data = ['message' => 'Hello']; return $this->view($data, 200); } }
Debug
Known issues
gotchaRequires Symfony framework and may conflict with other bundles.
fix
Ensure Symfony is installed and configure routing accordingly.
affects: >=2.0.0
Upgrade
Version history
3.9.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
friendsofsymfony-rest-bundle — pip install friendsofsymfony-rest-bundle · libregistry