• Stars
    star
    1,087
  • Rank 42,594 (Top 0.9 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Extensions for the Eloquent ORM

Sofa/Eloquence

GitHub Tests Action Status Downloads stable

Easy and flexible extensions for the Eloquent ORM.

Currently available extensions:

  1. Searchable query - crazy-simple fulltext search through any related model
  2. Validable - self-validating models
  3. Mappable -map attributes to table fields and/or related models
  4. Metable - meta attributes made easy
  5. Mutable - flexible attribute get/set mutators with quick setup
  6. Mutator - pipe-based mutating

By installing this package you get aforementioned extensions. Alternatively you can pull just single extension:

# get all extensions
composer require sofa/eloquence 

# get single extension, eg. Metable
composer require sofa/eloquence-metable

Check the documentation for installation and usage info, website for examples and API reference

Contribution

Shout out to all the Contributors!

All contributions are welcome, PRs must be tested and PSR-2 compliant - refer to particular extension repository.

More Repositories

1

revisionable

Nice and easy way to handle revisions of your db
PHP
260
star
2

eloquence-base

base for the Eloquence extensions + Searchable
PHP
77
star
3

hookable

Laravel Eloquent hooks system
PHP
64
star
4

eloquence-mappable

Eloquence Mappable extension for Eloquent ORM
PHP
50
star
5

model-locking

Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent ORM. https://softonsofa.com
PHP
47
star
6

Eloquent-triple-pivot

Laravel/Eloquent triple model many-to-many relation
PHP
43
star
7

eloquence-metable

Eloquence Metable extension for Eloquent ORM
PHP
32
star
8

laravel-global-scope

Define Laravel Global Scopes easier.
PHP
28
star
9

eloquence-mutable

Eloquence Mutable extension for Eloquent ORM
PHP
27
star
10

sublime-snippets

A few useful Sublime Text snippets
24
star
11

eloquence-validable

Eloquence Validable extension for Eloquent ORM
PHP
24
star
12

eloquent-cascade

Cascading soft / hard deletes for Laravel Eloquent ORM https://softonsofa.com
PHP
24
star
13

laravel-kahlan

Laravel context for kahlan specs/tests - allows nice BDD way of developing Laravel app. https://softonsofa.com
PHP
16
star
14

laravel-test-generator

Don't spend time writing boilerplate for your feature tests in Laravel app.
PHP
11
star
15

eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit https://softonsofa.com
PHP
10
star
16

laravel5-global-scope-example

Learn how to define and use Eloquent Global Scopes in Laravel 5
CSS
10
star
17

eloquent-scopes

Handy scopes for the eloquent (Laravel) query builder.
PHP
8
star
18

state-machine

Easy to use Finite State Machine implementation https://softonsofa.com
PHP
7
star
19

laravel-db-queries-alert

protect your Laravel app from N+1 and alikes AKA check your queries bro!
PHP
7
star
20

laravel-history

Plug-and-play full history for your Eloquent models
PHP
7
star
21

laravel-scopes

Handy scopes for the Laravel's Query Builder
PHP
4
star
22

kahlan-driven-laravel

Usage example of the https://github.com/jarektkaczyk/laravel-kahlan - a laravel context in kahlan specs. https://softonsofa.com
PHP
4
star
23

artisan-log

PHP
3
star
24

laravel4-global-scope-example

PHP
2
star
25

laravel-searchable

Extension for Laravel Query Builder providing simple yet powerful fulltext search
PHP
2
star
26

laravel-sortable

Easily sort your eloquent models https://softonsofa.com
PHP
1
star
27

action-labeler

JavaScript
1
star
28

php-json

A simple wrapper around json_encode() and json_decode() for catching any errors without executing json_last_error()
PHP
1
star