Download the PHP package tuto1902/carousel without Composer

On this page you can find all versions of the php package tuto1902/carousel. 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 carousel

Embla carousel wrapper for Laravel

Latest Version on Packagist Total Downloads

This pacakge provides a blade component wrapper for the Embla Carousel component. It allows you to incorporate a carousel component on any Laravel project by using a simple blade component and providing configuration properties to fit your specific needs.

Requirements

Installation

You can install the package via composer:

Add the following line to resources\js\app.js. Make sure to add this line at the beginning of the file, or at least before AlpineJS is initialized.

Add the following line to tailwind.config.js inside the content section

Then, compile all your assets using Vite

Optionally, you can publish the views using

Usage

To get started, you can create a simple view using

It's recommended to use a layout component so that all pages share the same boilerplate code. You can create a new layout component using

This will create two files:

Replace the content of app-layout.blade.php with the common HTML boilerplate to be shared among all views. Here's an example of a simple layout file.

You can combine all components provided in this package to assemble your own caruosel. Here's an example. If you published the views using php artisan vendor:publish, you don't need to include the view namespace x-carousel:: and you can simply use <x-carousel> instead. Add this content to the view we created earlier

Finally, create a new route to see your new carousel in action.

You can include any of the following parameters to further customize the looks and feel of the carousel. For example, using the loop parameter, the carousel will loop around after reaching the last/first slide.

Here's a list of all available properties

Property Accepted Values Description
loop true/false Loop back whean reaching the last/first slide
orientation horizontal/vertical Changes the carousel orientation
autoplay true/false When enabled, slides will autoplay after a delay
delay number Controls the delay of the carousel autoplay in miliseconds. Default is 4000 (4 seconds)
size string Controls the size of the carousel. You can use any valid Tailwind CSS class. Default value is size-96. See Tailwind CSS Documentation for all possible values.

Changelog

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

Credits

License

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


All versions of carousel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^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 tuto1902/carousel contains the following files

Loading the files please wait ....