PHPackages                             bear/resource - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bear/resource

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bear/resource
=============

Hypermedia framework for object as a service

1.31.0(3mo ago)48643.5k—9.9%20[1 issues](https://github.com/bearsunday/BEAR.Resource/issues)20MITPHPPHP ^8.2CI passing

Since Oct 18Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/bearsunday/BEAR.Resource)[ Packagist](https://packagist.org/packages/bear/resource)[ RSS](/packages/bear-resource/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (151)Used By (20)

BEAR.Resource
=============

[](#bearresource)

Hypermedia framework for object as a service
--------------------------------------------

[](#hypermedia-framework-for-object-as-a-service)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d1121d9d1c2cc5da1c3a33efe7fc286b6da464229a066a000d99d9db8ae09f03/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6265617273756e6461792f424541522e5265736f757263652f6261646765732f7175616c6974792d73636f72652e706e673f623d312e78)](https://scrutinizer-ci.com/g/bearsunday/BEAR.Resource/?branch=1.x)[![codecov](https://camo.githubusercontent.com/c5d3f0023251622242822f3304fed9bb7dc675a83ec6d2edb7b1689274bc0be8/68747470733a2f2f636f6465636f762e696f2f67682f6265617273756e6461792f424541522e5265736f757263652f6272616e63682f312e782f67726170682f62616467652e7376673f746f6b656e3d65683363394146344d72)](https://codecov.io/gh/koriym/BEAR.Resource)[![Type Coverage](https://camo.githubusercontent.com/9ad4094d7dd25c2a1021b2eb1008767c21818138223e171d527cda67483ffe65/68747470733a2f2f73686570686572642e6465762f6769746875622f6265617273756e6461792f424541522e5265736f757263652f636f7665726167652e737667)](https://shepherd.dev/github/bearsunday/BEAR.Resource)[![Continuous Integration](https://github.com/bearsunday/BEAR.Resource/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/bearsunday/BEAR.Resource/actions/workflows/continuous-integration.yml)

**BEAR.Resource** Is a Hypermedia framework that allows resources to behave as objects. It allows objects to have RESTful web service benefits such as client-server, uniform interface, statelessness, resource expression with mutual connectivity and layered components.

In order to introduce flexibility and longevity to your existing domain model or application data you can introduce an API as the driving force in your develpment by making your application REST-Centric in it's approach.

Resource Object
---------------

[](#resource-object)

The resource object is an object that has resource behavior.

- 1 URI Resource is mapped to 1 class, it is retrieved by using a resource client.
- A request is made to a method with named parameters that responds to a uniform resource request.
- Through the request the method changes the resource state and return itself `$this`.

```
