Download the PHP package infernalmedia/responsive-image-craft without Composer

On this page you can find all versions of the php package infernalmedia/responsive-image-craft. 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 responsive-image-craft

Add static responsive images to your Laravel project

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Introducing ResponsiveImageCraft, a powerful Laravel package that empowers you to effortlessly generate responsive images in various desired static formats through a simple command line interface. This package equips you with a versatile component to effortlessly display these responsive images on your web pages. Additionally, you'll find a collection of SCSS mixins to effortlessly generate the necessary code when using the images as background-images, ensuring a seamless integration into your projects.

With ResponsiveImageCraft, you can now efficiently manage and serve responsive images, enhancing your website's performance and user experience across various devices. Embrace the ease and flexibility of ResponsiveImageCraft as it takes care of the heavy lifting for you, delivering stunning visuals without the hassle. So why wait? Elevate your image handling capabilities today with ResponsiveImageCraft.

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the scss helper. The scss needs sass:^1.57 to run correctly.

Usage

Images generations

After configuring, the source and targets, run:

Optionally you can define the source

Responsive Image Component

Here is a basic working configuration

Will generate the following html

The following attributes are available for customization

Here is complete example:

Will generate the following html

Using responsive image with Sass (and ViteJs)

Configuration

Set your vite.config.js to give env variables to your scss

Responsive Image SCSS Mixins and Styles

The Responsive Image SCSS module provides useful mixins and styles for creating responsive background images and managing media queries.

Mixin usage

Use the responsive-background-image-from-existing-css-var mixin to generate responsive background images from existing CSS vars generated by the laravel facade ResponsiveImageCraft::getCssVariables():

Or use the responsive-background-image mixin to generate responsive background images

Be careful, the extensions list order will define the browser preference.

Other useful functions are available in /scss/_assets-url-helper.scss

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of responsive-image-craft with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/image Version ^3.7
spatie/image-optimizer Version ^1.7
spatie/laravel-package-tools Version ^1.16.0
spatie/temporary-directory Version ^2.1
illuminate/contracts Version ^9.0|^10.0|^11.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 infernalmedia/responsive-image-craft contains the following files

Loading the files please wait ....