PHPackages                             openbuildings/jam-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. [Database &amp; ORM](/categories/database)
4. /
5. openbuildings/jam-resource

AbandonedArchivedKohana-module[Database &amp; ORM](/categories/database)

openbuildings/jam-resource
==========================

Kohana resources for Jam ORM which connect routes, controllers and models

0.2.3(12y ago)01.2kICSPHP

Since Jun 5Pushed 12y agoCompare

[ Source](https://github.com/OpenBuildings/jam-resource)[ Packagist](https://packagist.org/packages/openbuildings/jam-resource)[ Docs](https://github.com/openbuildings/jam-resource)[ RSS](/packages/openbuildings-jam-resource/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (3)Versions (5)Used By (0)

Resource Jam module for Kohana 3.3
==================================

[](#resource-jam-module-for-kohana-33)

Resources act as a bridge between routes, models and requests.

The `jam-resource` module works with the mighty [Jam ORM for Kohana 3.3](openbuildings/jam)

Main Features
-------------

[](#main-features)

- Define resources in your bootstrap and routes for them would automatically be created
- Generate urls from model objects or collections
- Nest resources
- Access the model object, the model collection or the parent object for the current request
- Supports slugs with the sluggable behavior in Jam ORM
- Restrict routes (and actions) to certain HTTP methods
- Easily build a RESTful API

Defining resources
------------------

[](#defining-resources)

The simplest way to define a resource:

```
