bricknpc/eloquent-tables
最新稳定版本:1.2.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.
bricknpc/eloquent-tables 适用场景与选型建议
bricknpc/eloquent-tables 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 59 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pagination」 「laravel」 「table」 「datatable」 「eloquent」 「sorting」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bricknpc/eloquent-tables 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bricknpc/eloquent-tables 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bricknpc/eloquent-tables 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Plug-ins for DataTables
A component that allows creating responsive HTML tables or lists from data object
Adjacency List’ed Closure Table database design pattern implementation for Laravel. Includes restore of tree
A simple package to create tables in Discord messages.
Provides a Data Grid tables for your Symfony project.
Normalize an index range from user input
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-14
