diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e8792..b856d84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Release Notes +## v0.12.0 (2018-03-02) + +### Added +- [Query scopes](https://github.com/aaemnnosttv/silk/issues/24) for model queries +- [Soft `Model::find(id)` retrieval method](https://github.com/aaemnnosttv/silk/issues/25) +- `\Silk\Silk::VERSION` Version constant + +## Changed +- Raised minimum PHP version to 5.6 +- [Updated `tightenco/collect` Collection library](https://github.com/aaemnnosttv/silk/issues/27) +**_Breaking change from previous version with some methods_** (see issue) +- [Removed deprecated methods](https://github.com/aaemnnosttv/silk/issues/28) **Breaking Change** + - `Silk\Post\Model::fromWpPost` + - `Silk\Term\Model::fromWpTerm` +- Removed `Silk\Contracts\Query\BuildsQueries` interface + ## v0.11.1 (2016-30-08) ### Changed diff --git a/README.md b/README.md index 12cdbe4..c8471e2 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ A modern API for WordPress. Use with confidence, upgrade with care. --- - ## What is Silk? Silk is a library designed as a thin layer on top of WordPress, abstracting away the mess of functions into a clean and expressive object-oriented API. Use as much or little as you want, while maintaining compatibility with everything else that's meant to work with WordPress. @@ -33,10 +31,3 @@ composer require silk/silk ## Contributing Contributions are welcome! If you're interested in contributing to the project, please open an issue first. I would hate to decline a Pull Request forged by hours of effort for any reason, so please read the contribution guidelines first. - -#### Related Projects and Inspiration -- [Laravel](https://laravel.com) -- [Timber](https://github.com/jarednova/timber) -- [Corcel](https://github.com/jgrossi/corcel) -- [WordPlate](https://github.com/wordplate/wordplate) -- [WP Eloquent](https://github.com/tareq1988/wp-eloquent) diff --git a/composer.json b/composer.json index 2fc182b..7c53fa9 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,11 @@ "psr-4": {"Silk\\":"src"}, "files": ["src/functions.php"] }, + "autoload-dev": { + "classmap": [ + "tests/src" + ] + }, "scripts": { "test": "phpunit", "coverage": "coveralls" diff --git a/src/Silk.php b/src/Silk.php new file mode 100644 index 0000000..26f2302 --- /dev/null +++ b/src/Silk.php @@ -0,0 +1,13 @@ +