From 06bf00b23772009332ca149d6342b374d50adac2 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 9 Oct 2019 11:15:46 +0200 Subject: [PATCH] Add laravel-lodash package and enable igbinary support for redis --- Changelog | 2 + composer.json | 4 +- composer.lock | 103 +++++++++++++++++++++++++++++++++++++++++++- config/app.php | 7 ++- config/database.php | 1 + 5 files changed, 113 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 6a8f083ac..8277322e8 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2019-10-09 DariusIII + * Chg: Add laravel-lodash package and enable igbinary support for redis 2019-10-08 DariusIII * Chg: Add league/omnipay and inkedcurtis/omnipay-coinpayments for future usage * Chg: Rename Redis alias to RedisManager for phpredis usage diff --git a/composer.json b/composer.json index cbd225486..b7111cf99 100755 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, { "type": "vcs", - "url": "https://github.com/DariusIII/laravel-cloudflare" + "url": "https://github.com/DariusIII/laravel-lodash" } ], "require": { @@ -76,6 +76,7 @@ "ext-mysqlnd": "*", "ext-openssl": "*", "ext-pcre": "*", + "ext-redis": "*", "ext-pdo": "*", "ext-pdo_mysql": "*", "ext-session": "*", @@ -93,6 +94,7 @@ "czproject/git-php": "^3.14", "dariusiii/l5-fixtures": "^2.0.0", "dariusiii/laravel-database-trigger": "^2.0", + "dariusiii/laravel-lodash": "dev-master", "dariusiii/php-itunes-api": "^1.0", "dariusiii/rarinfo": "^2.5", "dariusiii/tmdb-laravel": "^2.0", diff --git a/composer.lock b/composer.lock index 684c13b35..e9814d0a4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2f4660c4e627b2c554084ac7d86a6949", + "content-hash": "71ff35c7c5de367329a6907671a0e690", "packages": [ { "name": "aharen/omdbapi", @@ -634,6 +634,105 @@ ], "time": "2019-09-10T13:10:35+00:00" }, + { + "name": "dariusiii/laravel-lodash", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/DariusIII/laravel-lodash.git", + "reference": "ce0240a14ff7691ff2e83413ca7c5ce8a819ae85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DariusIII/laravel-lodash/zipball/ce0240a14ff7691ff2e83413ca7c5ce8a819ae85", + "reference": "ce0240a14ff7691ff2e83413ca7c5ce8a819ae85", + "shasum": "" + }, + "require": { + "laravel/framework": "^5.8|^6.0", + "php": ">=7.1.3" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.90", + "beyondcode/laravel-self-diagnosis": "^1.2", + "elasticsearch/elasticsearch": "^6.1", + "longman/php-code-style": "dev-master", + "mockery/mockery": "~1.2", + "orchestra/testbench": "^3.8|^4.0", + "phpunit/phpunit": "~8.0", + "predis/predis": "^1.1" + }, + "suggest": { + "aws/aws-sdk-php": "Use AWS SQS >=3", + "barryvdh/laravel-debugbar": "Allow print compiled queries via function get_db_queries()", + "beyondcode/laravel-self-diagnosis": "Run system diagnosis with many custom checks", + "elasticsearch/elasticsearch": "Use Elasticsearch service in the laravel", + "ext-igbinary": "Needed for speed up Redis/Memcached data serialization and reduce serialized data size", + "ext-redis": "Needed for using phpredis", + "longman/laravel-multilang": "Adds multilanguage functional to Laravel >=5.5", + "ramsey/uuid": "Use UUID identifiers in the eloquent models" + }, + "type": "library", + "autoload": { + "psr-4": { + "Longman\\LaravelLodash\\": "src/Lodash" + }, + "files": [ + "src/helpers.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "phpcs": [ + "./vendor/bin/phpcs --standard=phpcs.xml -spn --encoding=utf-8 src/ tests/ --report-width=150" + ], + "phpcbf": [ + "./vendor/bin/phpcbf --standard=phpcs.xml -spn --encoding=utf-8 src/ tests/ --report-width=150" + ], + "test": [ + "./vendor/bin/phpunit -c phpunit.xml.dist" + ], + "coverage-clover": [ + "./vendor/bin/phpunit --stop-on-failure --coverage-clover build/logs/clover.xml" + ], + "coverage-html": [ + "./vendor/bin/phpunit --stop-on-failure --coverage-html build/coverage" + ] + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Avtandil Kikabidze aka LONGMAN", + "email": "akalongman@gmail.com", + "homepage": "http://longman.me", + "role": "Maintainer, Developer" + } + ], + "description": "Add more functional to Laravel >=5.5", + "homepage": "https://github.com/akalongman/laravel-lodash", + "keywords": [ + "aws", + "igbinary", + "laravel", + "lodash", + "phpredis", + "redis", + "sqs", + "tools", + "utilities" + ], + "support": { + "issues": "https://github.com/akalongman/laravel-lodash/issues", + "source": "https://github.com/akalongman/laravel-lodash" + }, + "time": "2019-10-09T08:50:43+00:00" + }, { "name": "dariusiii/php-itunes-api", "version": "v1.0.9.1", @@ -12996,6 +13095,7 @@ "minimum-stability": "stable", "stability-flags": { "b3rs3rk/steamfront": 20, + "dariusiii/laravel-lodash": 20, "joshpinkney/tv-maze-php-api": 20 }, "prefer-stable": false, @@ -13017,6 +13117,7 @@ "ext-mysqlnd": "*", "ext-openssl": "*", "ext-pcre": "*", + "ext-redis": "*", "ext-pdo": "*", "ext-pdo_mysql": "*", "ext-session": "*", diff --git a/config/app.php b/config/app.php index 9ade23a55..649619dd6 100644 --- a/config/app.php +++ b/config/app.php @@ -128,7 +128,7 @@ return [ Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, - Illuminate\Cache\CacheServiceProvider::class, + //Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, @@ -141,17 +141,20 @@ return [ Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, - Illuminate\Redis\RedisServiceProvider::class, + //Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, + Longman\LaravelLodash\Cache\CacheServiceProvider::class, + Longman\LaravelLodash\Redis\RedisServiceProvider::class, /* * Package Service Providers... */ Laravel\Tinker\TinkerServiceProvider::class, + Longman\LaravelLodash\LodashServiceProvider::class, /* * Application Service Providers... diff --git a/config/database.php b/config/database.php index 0e6b86b0d..374eb9c8c 100644 --- a/config/database.php +++ b/config/database.php @@ -127,6 +127,7 @@ return [ 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), 'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_', + 'serializer' => 'igbinary', ], 'default' => [ 'url' => env('REDIS_URL'),