PHPackages                             egretos/restful-model - 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. [API Development](/categories/api)
4. /
5. egretos/restful-model

ActiveLibrary[API Development](/categories/api)

egretos/restful-model
=====================

Restful API model for easy implementation of any RESTful API

12.0k1[1 issues](https://github.com/egretos/restful-model/issues)[1 PRs](https://github.com/egretos/restful-model/pulls)PHP

Since Jun 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/egretos/restful-model)[ Packagist](https://packagist.org/packages/egretos/restful-model)[ RSS](/packages/egretos-restful-model/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Restful Model
=====================

[](#laravel-restful-model)

Introduction
------------

[](#introduction)

This package is providing an object mapper for REST HTTP services using Eloquent-like "Models". When using the Restful Model, third-party APIs and REST resources have a "Model" reflection that is used for integration. Restful Model allows you to read, update, delete resources via HTTP request and modify them as easy as Eloquent do it with databases.

Installation
------------

[](#installation)

Install package via composer:

```
composer require egretos/restful-model
```

Publish `rest_connections.php` config:

```
php artisan vendor:publish --provider="Egretos\RestModel\RestModelServiceProvider"
```

Configuration
-------------

[](#configuration)

Before you start, you need to define your first connection. All HTTP connections stored in `config/rest_connections.php` file. Every connection required `domain` configuration for working.

This is a most simple connection config:

```
