Download the PHP package shinsenter/defer.php without Composer

On this page you can find all versions of the php package shinsenter/defer.php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package defer.php

defer.php

🚀 A PHP library that aims to help you concentrate on web performance optimization.

GitHub GitHub Release Date CodeFactor Grade Post an issue GitHub issues


🥇 Powered by 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.


Features

Installation

Install with composer

Load the library into your program

Requirements

This library requires PHP 5.6 or above so you need this version or the latest version of PHP installed on your system.

It recommends that the server is running PHP version 7.3+ or above for better performance and supports.

Library options from v2.x are not backward compatible with previous release's options. Please read library manual for more details.

Usages

Basic usage

Options

Optimize final output HTML of a website

You also can capture the final output generated by PHP and optimize it before giving it back to browser.

Ignore optimization for some elements

Add an data-ignore attribute to element that you don't want it to be optimized by the library. This attribute can be used for all HTML elements.

Add an data-nolazy attribute to element that you don't want it to be lazy-loaded by the library. Other optimizations for that element will still be applied except lazy-load. This attribute can be used for all <img>, <picture>, <video>, <audio>, <iframe> and also <link rel="stylesheet"> elements.

Stylesheets and JavaScript

This library supports a more efficient lazy-load method for stylesheets and JavaScript tags that contain the defer attribute.

Even when the library is turned off, above tags that contain defer attribute are backwards compatible and work well in most modern browsers. You can use it with peace of mind.

AMP page

Only few options of this library are applicable to AMP pages (minifying HTML content for example).

My works

Defer.js

https://code.shin.company/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.

Wordpress plugin

https://code.shin.company/defer-wordpress/

⚡️ A native, blazing fast lazy loader. ✅ Legacy browsers support (IE9+). 💯 SEO friendly. 🧩 Lazy-load everything.

Laravel package

https://code.shin.company/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.

Support my activities

Donate via Paypal Become a sponsor Become a stargazer Report an issue


From Vietnam 🇻🇳 with love.


All versions of defer.php with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0 || ^8.0
ext-libxml Version *
lib-libxml Version >=2.7.7
mrclay/jsmin-php Version ^2.0
psr/simple-cache Version ^1.0
symfony/css-selector Version ^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/options-resolver Version ^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/polyfill-mbstring Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shinsenter/defer.php contains the following files

Loading the files please wait ....