PHPackages                             kraenkvisuell/entriloquent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kraenkvisuell/entriloquent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kraenkvisuell/entriloquent
==========================

v0.5.2(1y ago)26.1k↓50%MITPHP

Since Nov 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kraenkvisuell/entriloquent)[ Packagist](https://packagist.org/packages/kraenkvisuell/entriloquent)[ RSS](/packages/kraenkvisuell-entriloquent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

Entriloquent
============

[](#entriloquent)

> Entriloquent is a Statamic addon that lets you use entries of any collection similar to how you use Laravel models. It is mostly a "convenience" wrapper around "Entry" and mostly makes sense for usage in your PHP/Laravel backend code.

Features
--------

[](#features)

By creating a PHP class extending `Kraenkvisuell\Entriloquent` you can use this class like a model and have a convenient place for methods concerning this entries of this collection.

How to Install
--------------

[](#how-to-install)

You can install this addon via Composer:

```
composer require kraenkvisuell/entriloquent
```

How to Use
----------

[](#how-to-use)

Let's assume you have a Statamic collection called "Products" (having the handle `products`). Now you can create a PHP class anywhere – I personally use the models directory because that makes sense to me, but it could be anything, like f.e. a "Services" directory.

```
