Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Tailwind Datatables Laravel Package

squipix/tailwind-datatables

View on GitHub
Deep Wiki
Context7

Squipix Laravel Tailwind DataTables Package

GitHub Workflow Status Coverage Status SensioLabs Insight GitHub Issues

Packagist Packagist Release Packagist Downloads

Quick Start Guides

For installation and detailed usage steps, please review the following guides:

You can follow these documents to better understand your package

A fully customizable package that seamlessly integrates the full power of Yajra DataTables with the modern Tailwind CSS and Alpine.js interface into your Laravel projects. Easily manage everything from server-side processing to rich column customization.

Features

  • Seamless Integration: Provides all core Yajra DataTables features (server-side processing, searching, pagination, sorting, buttons) with Tailwind CSS and Alpine.js.
  • Reusability: A Composer package that can be easily integrated into Laravel projects.
  • Customizability: Easily adapts to your own Tailwind configurations and theme colors.
  • Performance: Maintains performance by preserving the existing Yajra infrastructure.
  • Backward Compatibility: Easy and secure updates with versioning compliant with SemVer rules.
  • Easy Getting Started Experience: Quickly start using with quick start guides and clear examples.
  • Rich Column Customization: Easily apply visual enhancements like date formats, status badges, text truncation, and more.

Installation and Usage

To add the package to your Laravel project via Composer:

composer require squipix/tailwind-datatables

Configuration

You can publish the configuration file to modify the package's default settings:

php artisan vendor:publish --tag=squipix-tailwind-datatables-config

This command will copy the config/squipix-tailwind-datatables.php file to your project.

Asset Publishing (If Needed)

To publish the package's CSS files to your project's resources/css directory (to include in your own Tailwind pipeline):

php artisan vendor:publish --tag=tailwind-datatables-css

This command will copy the published CSS files under resources/css. You will need to import these files in your own resources/css/app.css file. A separate publishing command is not required for JavaScript files; they can be imported directly from the vendor directory.

Example Projects

You can examine our ready-to-use example projects to see how the package works with Livewire and Vue.js stacks. These projects are full-fledged Laravel applications demonstrating the installation and basic usage of the package.

Running Example Projects

Each example project manages its own dependencies and database.

  1. Clone the Main Package:
    git clone https://github.com/squipix/tailwind-datatables.git
    cd tailwind-datatables
    
  2. Run the Vue.js Example:
    cd examples/vue
    composer install         # Install dependencies (automatically links main package)
    npm install              # Install frontend dependencies
    cp .env.example .env     # Create .env file
    php artisan key:generate
    php artisan migrate:fresh --seed # Create database and seed data
    npm run dev              # Start Vite development server
    php artisan serve        # Start Laravel development server
    # Open http://localhost:8000/posts in your browser (or login)
    
  3. Run the Livewire example:
    cd ../livewire
    composer install
    npm install
    cp .env.example .env
    php artisan key:generate
    php artisan migrate:fresh --seed
    npm run dev
    php artisan serve
    # Open your Livewire page in the browser
    

Contributing

Bug reports, feature requests, and code contributions are welcome. Please refer to the Contributing Guide.

License

The Squipix Laravel Tailwind DataTables package is released under the MIT License.

Credits

Inspired by Stripe's idempotency implementation.

Support

For issues, questions, or contributions, please visit the GitHub repository.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor