bricknpc/eloquent-tables
最新稳定版本:1.1.0
Composer 安装命令:
composer require bricknpc/eloquent-tables
包简介
Eloquent tables for Laravel.
README 文档
README
BrickNPC Eloquent Tables
Installation
Install the package using composer.
composer require bricknpc/eloquent-tables
Requirements
- PHP
^8.4 - Laravel
^12.0
This package builds eloquent tables for you with the frontend framework of your choice. You need to install the frontend framework yourself in your Laravel project.
Supported frontend frameworks:
- Bootstrap 5
Roadmap:
- Tailwind 4
- Bulma
- BlazeUI
Publishing assets
You can publish the Eloquent Tables config and view files.
# All assets php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" # Only one type of asset php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="views" php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="config" php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="lang"
Documentation
See the documentation.
Local development
Clone and install the project
This project has a simple docker setup for local development. To start local development, download the project and start the docker container. You need to have Docker installed on your local machine for this.
First, clone the project.
git clone https://github.com/bricknpc/eloquent-tables.git
cd eloquent-tables
Up the docker container and install the dependencies.
docker-compose up -d
docker-compose exec php composer install
Executing commands in the container
You can execute commands in the container using the exec option.
docker-compose exec php <your command>
If you rather log in to the container and execute commands manually, you can use this:
docker-compose exec php bash
Stopping the container
docker-compose down
Documentation
When starting the docker container, the documentation site will automatically be started as well and will be available on http://localhost:3000/eloquent-tables. The documentation is built using Docusaurus. When adding new features or making changes, please also update the documentation.
Running tests
You can run the tests using the following command.
docker-compose exec php composer test
Code quality tools
Eloquent Tables uses PHP CS Fixer and PHPStan to ensure a high quality code base. You can run the tools locally using the following commands.
PHP CS Fixer:
docker-compose exec php composer cs
PHPStan:
docker-compose exec php composer ps
Community showcase
Are you using Eloquent Tables in your project? Let us know by opening a pull request to add your project to the community showcase. We love seeing what people are building with Eloquent Tables.
Contributing
Pull requests are welcome. When creating a pull request, please include what you changed and why in the description of the pull request. When fixing a bug, please include a test that reproduces the bug and describe how to test the bug manually.
Before creating a pull request, please run the tests and code quality tools locally.
We only accept pull requests when PHPStan reports no errors and the test coverage hasn't gone down.
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-14
