Skip to content

Commit

Permalink
extracted extensions as separate packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Oct 13, 2017
1 parent 8805ee5 commit f1e64f2
Show file tree
Hide file tree
Showing 44 changed files with 27 additions and 4,981 deletions.
7 changes: 0 additions & 7 deletions .scrutinizer.yml

This file was deleted.

10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ php:
- 7.0
- 7.1

install:
- travis_retry composer require satooshi/php-coveralls:~0.6@stable

before_script:
- mkdir -p build/logs
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev

script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpcs src --standard=psr2

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
- ./vendor/bin/phpunit
39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
# Sofa/Eloquence

[![Build Status](https://travis-ci.org/jarektkaczyk/eloquence.svg)](https://travis-ci.org/jarektkaczyk/eloquence) [![Coverage Status](https://coveralls.io/repos/jarektkaczyk/eloquence/badge.svg)](https://coveralls.io/r/jarektkaczyk/eloquence) [![Code Quality](https://scrutinizer-ci.com/g/jarektkaczyk/eloquence/badges/quality-score.png)](https://scrutinizer-ci.com/g/jarektkaczyk/eloquence) [![Downloads](https://poser.pugx.org/sofa/eloquence/downloads)](https://packagist.org/packages/sofa/eloquence) [![stable](https://poser.pugx.org/sofa/eloquence/v/stable.svg)](https://packagist.org/packages/sofa/eloquence)
[![Build Status](https://travis-ci.org/jarektkaczyk/eloquence.svg)](https://travis-ci.org/jarektkaczyk/eloquence) [![Downloads](https://poser.pugx.org/sofa/eloquence/downloads)](https://packagist.org/packages/sofa/eloquence) [![stable](https://poser.pugx.org/sofa/eloquence/v/stable.svg)](https://packagist.org/packages/sofa/eloquence)

Easy and flexible extensions for the [Eloquent ORM](https://laravel.com/docs/5.4/eloquent).
Easy and flexible extensions for the [Eloquent ORM](https://laravel.com/docs/eloquent).

**If I'm saving you some time with my work, you can back me up on [Patreon page](https://patreon.com/jarektkaczyk).**

For older versions of Illuminate/Laravel please use:
- 5.3.* -> [5.3](https://github.com/jarektkaczyk/eloquence/tree/5.3) branch.
- 5.2.* -> [5.2](https://github.com/jarektkaczyk/eloquence/tree/5.2) branch.
- 5.1.* -> [5.1](https://github.com/jarektkaczyk/eloquence/tree/5.1) branch.
- 5.0.* -> [0.4](https://github.com/jarektkaczyk/eloquence/tree/0.4) branch.

Currently available extensions:

1. `Searchable` query - crazy-simple fulltext search through any related model (based on https://github.com/nicolaslopezj/searchable only written from scratch & greatly improved)
1. `Validable` - self-validating models
2. `Mappable` -map attributes to table fields and/or related models
3. `Metable` - meta attributes made easy
4. `Mutable` - flexible attribute get/set mutators with quick setup (with help of [Romain Lanz](https://github.com/RomainLanz))
5. `Mutator` - pipe-based mutating
1. [Searchable](https://github.com/jarektkaczyk/eloquence-base) query - crazy-simple fulltext search through any related model
1. [Validable](https://github.com/jarektkaczyk/eloquence-validable) - self-validating models
2. [Mappable](https://github.com/jarektkaczyk/eloquence-mappable) -map attributes to table fields and/or related models
3. [Metable](https://github.com/jarektkaczyk/eloquence-metable) - meta attributes made easy
4. [Mutable](https://github.com/jarektkaczyk/eloquence-mutable) - flexible attribute get/set mutators with quick setup
5. [Mutator](https://github.com/jarektkaczyk/eloquence-mutable) - pipe-based mutating

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

```bash
# get all extensions
composer require sofa/eloquence

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

**Check the [documentation](https://github.com/jarektkaczyk/eloquence/wiki) for installation and usage info, [website](http://softonsofa.com/tag/eloquence/) for examples and [API reference](http://jarektkaczyk.github.io/eloquence-api)**

## Contribution

All contributions are welcome, PRs must be **tested** and **PSR-2 compliant**.
Shout out to all the Contributors!

To validate your builds before committing use the following composer command:
```bash
composer test
```
All contributions are welcome, PRs must be **tested** and **PSR-2 compliant** - refer to particular extension repository.
25 changes: 6 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,24 @@
],
"require": {
"php": ">=7.0.0",
"sofa/hookable": "5.5.*",
"illuminate/database": "5.5.*"
"sofa/eloquence-base": "5.5.*",
"sofa/eloquence-metable": "5.5.*",
"sofa/eloquence-mutable": "5.5.*",
"sofa/eloquence-mappable": "5.5.*",
"sofa/eloquence-validable": "5.5.*"
},
"require-dev": {
"phpunit/phpunit": "4.5.0",
"squizlabs/php_codesniffer": "2.3.3",
"mockery/mockery": "0.9.4"
},
"autoload": {
"psr-4": {
"Sofa\\Eloquence\\": "src"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Sofa\\Eloquence\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"Sofa\\Eloquence\\ServiceProvider"
]
}
},
"minimum-stability": "stable",
"scripts": {
"test": "phpunit && ./vendor/bin/phpcs src --standard=psr2 --report=diff --colors",
"phpcs": "./vendor/bin/phpcs src --standard=psr2 --report=diff --colors"
"test": "phpunit"
}
}
38 changes: 0 additions & 38 deletions src/AttributeCleaner/Observer.php

This file was deleted.

Loading

0 comments on commit f1e64f2

Please sign in to comment.