From 9004277679a4b5608cf72c93e3150b5db09fd47d Mon Sep 17 00:00:00 2001 From: Shin <2082119+shinsenter@users.noreply.github.com> Date: Thu, 15 Apr 2021 11:54:55 +0900 Subject: [PATCH] Updated package info --- README.md | 56 +++++++++++++++++++++++++++++++++++---------------- composer.json | 14 ++++++------- 2 files changed, 46 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 171ed4c..de0568a 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ # shinsenter/defer-laravel -🚀 A Laravel package that focuses on minimizing payload size of HTML document and optimizing processing on the browser when rendering the web page. +🚀 A Laravel package that focuses on minimizing payload size of HTML document +and optimizing processing on the browser when rendering the web page. - **Package**: [shinsenter/defer-laravel](https://packagist.org/packages/shinsenter/defer-laravel) -- **Version**: 1.0.0 +- **Version**: 1.0.3 - **Author**: Mai Nhut Tan - **Copyright**: 2021 AppSeeds - **License**: [MIT](https://raw.githubusercontent.com/shinsenter/defer-laravel/master/LICENSE) -[![Latest Version on Packagist](https://img.shields.io/packagist/v/shinsenter/defer-laravel.svg?style=flat-square)](https://packagist.org/packages/shinsenter/defer-laravel) +[![Latest Version on Packagist](https://img.shields.io/packagist/v/shinsenter/defer-laravel.svg)](https://packagist.org/packages/shinsenter/defer-laravel) [![CodeFactor](https://www.codefactor.io/repository/github/shinsenter/defer-laravel/badge)](https://www.codefactor.io/repository/github/shinsenter/defer-laravel) -[![Total Downloads](https://img.shields.io/packagist/dt/shinsenter/defer-laravel.svg?style=flat-square)](https://packagist.org/packages/shinsenter/defer-laravel) +[![Total Downloads](https://img.shields.io/packagist/dt/shinsenter/defer-laravel.svg)](https://packagist.org/packages/shinsenter/defer-laravel) ## Features @@ -41,7 +42,9 @@ ## Installation -Require the `shinsenter/defer-laravel` package in your `composer.json` and update your dependencies: +Require the `shinsenter/defer-laravel` package +in your `composer.json` and update your dependencies: + ```sh composer require "shinsenter/defer-laravel" ``` @@ -49,7 +52,9 @@ composer require "shinsenter/defer-laravel" ## Global usage -To allow `DeferMiddleware` for all of your routes, add the `DeferMiddleware` middleware at the top of the `$middleware` property of `app/Http/Kernel.php` class: +To allow `DeferMiddleware` for all of your routes, +add the `DeferMiddleware` middleware at the top +of the `$middleware` property of `app/Http/Kernel.php` class: ```php protected $middleware = [ @@ -61,7 +66,9 @@ protected $middleware = [ ## Configuration -The defaults are set in `config/defer-laravel.php`. Publish the config to copy the file to your own config: +The defaults are set in `config/defer-laravel.php`. +Publish the config to copy the file to your own config: + ```sh php artisan vendor:publish --tag="defer-laravel" ``` @@ -69,18 +76,21 @@ php artisan vendor:publish --tag="defer-laravel" ### Options -View the [defer-laravel.php](https://github.com/shinsenter/defer-laravel/blob/master/config/defer-laravel.php) config file for more details. +View the [defer-laravel.php](https://github.com/shinsenter/defer-laravel/blob/master/config/defer-laravel.php) +config file for more details. ### Lumen -On Lumen, just register the `DeferServiceProvider` manually in your `bootstrap/app.php` file: +On Lumen, just register the `DeferServiceProvider` manually +in your `bootstrap/app.php` file: ```php $app->register(\AppSeeds\DeferLaravel\DeferServiceProvider::class); ``` -Also copy the [defer-laravel.php](https://github.com/shinsenter/defer-laravel/blob/master/config/defer-laravel.php) config file to `config/defer-laravel.php` and put it into action: +Also copy the [defer-laravel.php](https://github.com/shinsenter/defer-laravel/blob/master/config/defer-laravel.php) +config file to `config/defer-laravel.php` and put it into action: ```php $app->configure('defer-laravel'); @@ -89,7 +99,8 @@ $app->configure('defer-laravel'); ## Global usage for Lumen -To allow `DeferMiddleware` for all your routes, add the `DeferMiddleware` middleware to the global middleware. +To allow `DeferMiddleware` for all your routes, +add the `DeferMiddleware` middleware to the global middleware. ```php $app->middleware([ @@ -101,7 +112,8 @@ $app->middleware([ ### Changelog -Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. +Please see [CHANGELOG](CHANGELOG.md) +for more information what has changed recently. ## Contributing @@ -111,12 +123,15 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ### Security -If you discover any security related issues, please email shin@shin.company instead of using the issue tracker. +If you discover any security related issues, +please email [shin@shin.company](mailto:shin@shin.company) +instead of using the issue tracker. ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. +The MIT License (MIT). +Please see [License File](LICENSE.md) for more information. ## My works @@ -126,21 +141,28 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio https://github.com/shinsenter/defer.js/ -🥇 A super small, super efficient library that helps you lazy load almost everything like images, video, audio, iframes as well as stylesheets, and JavaScript. +🥇 A super small, super efficient library +that helps you lazy load almost everything +like images, video, audio, iframes +as well as stylesheets, and JavaScript. ### defer.php https://github.com/shinsenter/defer.php/ -🚀 A PHP library that aims to help you concentrate on web performance optimization. +🚀 A PHP library that aims to help you +concentrate on web performance optimization. ### Wordpress plugin https://github.com/shinsenter/defer-wordpress/ -⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy load almost anything. +⚡️ A native, blazing fast lazy loader. +✅ Legacy browsers support (IE9+). +💯 SEO friendly. +🧩 Lazy load almost anything. ## Support my activities diff --git a/composer.json b/composer.json index 18d597f..2c30e21 100644 --- a/composer.json +++ b/composer.json @@ -47,15 +47,15 @@ } ], "require": { - "php": "^5.6|^7|^8", - "illuminate/support": "^5|^6|^7|^8|^9", - "illuminate/contracts": "^5|^6|^7|^8|^9", - "symfony/http-foundation": "^2|^3|^4|^5", - "symfony/http-kernel": "^2|^3|^4|^5", - "shinsenter/defer.php": "^2.2" + "php": ">=5.6", + "illuminate/support": ">=5", + "illuminate/contracts": ">=5", + "symfony/http-foundation": ">=2", + "symfony/http-kernel": ">=2", + "shinsenter/defer.php": "^2.3" }, "require-dev": { - "laravel/framework": "^5|^6|^7|^8" + "laravel/framework": ">=5" }, "suggest": { "ext-mbstring": "*"