Skip to content

Commit f1e64f2

Browse files
committed
extracted extensions as separate packages
1 parent 8805ee5 commit f1e64f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+27
-4981
lines changed

.scrutinizer.yml

-7
This file was deleted.

.travis.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,9 @@ php:
44
- 7.0
55
- 7.1
66

7-
install:
8-
- travis_retry composer require satooshi/php-coveralls:~0.6@stable
9-
107
before_script:
11-
- mkdir -p build/logs
128
- travis_retry composer self-update
139
- travis_retry composer install --prefer-source --no-interaction --dev
1410

1511
script:
16-
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
17-
- ./vendor/bin/phpcs src --standard=psr2
18-
19-
after_success:
20-
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
12+
- ./vendor/bin/phpunit

README.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
# Sofa/Eloquence
22

3-
[![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)
3+
[![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)
44

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

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

9-
For older versions of Illuminate/Laravel please use:
10-
- 5.3.* -> [5.3](https://github.com/jarektkaczyk/eloquence/tree/5.3) branch.
11-
- 5.2.* -> [5.2](https://github.com/jarektkaczyk/eloquence/tree/5.2) branch.
12-
- 5.1.* -> [5.1](https://github.com/jarektkaczyk/eloquence/tree/5.1) branch.
13-
- 5.0.* -> [0.4](https://github.com/jarektkaczyk/eloquence/tree/0.4) branch.
14-
159
Currently available extensions:
1610

17-
1. `Searchable` query - crazy-simple fulltext search through any related model (based on https://github.com/nicolaslopezj/searchable only written from scratch & greatly improved)
18-
1. `Validable` - self-validating models
19-
2. `Mappable` -map attributes to table fields and/or related models
20-
3. `Metable` - meta attributes made easy
21-
4. `Mutable` - flexible attribute get/set mutators with quick setup (with help of [Romain Lanz](https://github.com/RomainLanz))
22-
5. `Mutator` - pipe-based mutating
11+
1. [Searchable](https://github.com/jarektkaczyk/eloquence-base) query - crazy-simple fulltext search through any related model
12+
1. [Validable](https://github.com/jarektkaczyk/eloquence-validable) - self-validating models
13+
2. [Mappable](https://github.com/jarektkaczyk/eloquence-mappable) -map attributes to table fields and/or related models
14+
3. [Metable](https://github.com/jarektkaczyk/eloquence-metable) - meta attributes made easy
15+
4. [Mutable](https://github.com/jarektkaczyk/eloquence-mutable) - flexible attribute get/set mutators with quick setup
16+
5. [Mutator](https://github.com/jarektkaczyk/eloquence-mutable) - pipe-based mutating
17+
18+
By installing this package you get aforementioned extensions. Alternatively you can pull just single extension:
19+
20+
```bash
21+
# get all extensions
22+
composer require sofa/eloquence
23+
24+
# get single extension, eg. Metable
25+
composer require sofa/eloquence-metable
26+
```
2327

2428
**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)**
2529

2630
## Contribution
2731

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

30-
To validate your builds before committing use the following composer command:
31-
```bash
32-
composer test
33-
```
34+
All contributions are welcome, PRs must be **tested** and **PSR-2 compliant** - refer to particular extension repository.

composer.json

+6-19
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,24 @@
2424
],
2525
"require": {
2626
"php": ">=7.0.0",
27-
"sofa/hookable": "5.5.*",
28-
"illuminate/database": "5.5.*"
27+
"sofa/eloquence-base": "5.5.*",
28+
"sofa/eloquence-metable": "5.5.*",
29+
"sofa/eloquence-mutable": "5.5.*",
30+
"sofa/eloquence-mappable": "5.5.*",
31+
"sofa/eloquence-validable": "5.5.*"
2932
},
3033
"require-dev": {
3134
"phpunit/phpunit": "4.5.0",
3235
"squizlabs/php_codesniffer": "2.3.3",
3336
"mockery/mockery": "0.9.4"
3437
},
35-
"autoload": {
36-
"psr-4": {
37-
"Sofa\\Eloquence\\": "src"
38-
},
39-
"files": [
40-
"src/helpers.php"
41-
]
42-
},
4338
"autoload-dev": {
4439
"psr-4": {
4540
"Sofa\\Eloquence\\Tests\\": "tests"
4641
}
4742
},
48-
"extra": {
49-
"laravel": {
50-
"providers": [
51-
"Sofa\\Eloquence\\ServiceProvider"
52-
]
53-
}
54-
},
5543
"minimum-stability": "stable",
5644
"scripts": {
57-
"test": "phpunit && ./vendor/bin/phpcs src --standard=psr2 --report=diff --colors",
58-
"phpcs": "./vendor/bin/phpcs src --standard=psr2 --report=diff --colors"
45+
"test": "phpunit"
5946
}
6047
}

src/AttributeCleaner/Observer.php

-38
This file was deleted.

0 commit comments

Comments
 (0)