Download the PHP package bored-programmers/laragrid without Composer

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

LaraGrid

🚧 This package is in development, and is not ready for use in production yet. 🚧

LaraGrid is a Laravel package that provides a powerful and customizable grid system. It allows you to easily create sortable, filterable tables with pagination.

Table of Contents

Requirements

Installation

To install LaraGrid, you need to run the following command:

Publishable

You can publish the package's configuration, language files, and views using the following commands:

required

optional

TODO List

  1. [ ] Write tests for all functionality

Base Usage

Creating a Grid

To create a grid, you need to extend the BaseLaraGrid class and implement the getColumns, and getDataSource methods.

In the getColumns method, you define the columns that will be displayed in the grid. The Column::make method takes two arguments: the model field and the label.

The getDataSource method should return an instance of Illuminate\Database\Eloquent\Builder for the model you want to display in the grid.

Displaying the Grid

To display the grid in a Blade view, you can use the @livewire or <livewire> directive:

Replace 'my-grid' with the actual name of your Livewire component.

Customizing the Theme

You can customize the appearance of the grid by extending the BaseLaraGridTheme class and setting the desired CSS.

Then, in your grid class, you need to override the getTheme method and return an instance of your theme class.

By default, there is a theme called TailwindTheme.

Show filtering and sorting in url

If you want to show filtering and sorting in url, you need to rewrite default LaraGrid properties. You can do it like this:

Those Url params are default from livewire, so you can customize them as you want by following livewire docs.

Contribution Guidelines

We welcome contributions to LaraGrid. If you'd like to contribute, please fork the repository, make your changes, and submit a pull request. We have a few requirements for contributions:

Changelog

For a detailed history of changes, see releases on GitHub.

License

This project is licensed under the MIT license.

Contact Information

For any questions or concerns, please feel free to create a discussion on GitHub.

Credits

Created by Matěj Černý from Bored Programmers.

Acknowledgments

We would like to thank all the contributors who have helped to make LaraGrid a better package.


All versions of laragrid with dependencies

PHP Build Version
Package Version
Requires kirschbaum-development/eloquent-power-joins Version ^3.2
laravel/framework Version ^10.0
livewire/livewire Version ^3.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 bored-programmers/laragrid contains the following files

Loading the files please wait ...