raham/pipra
Composer 安装命令:
composer create-project raham/pipra
包简介
This is a PHP CRUD following the MVC architectural pattern.
README 文档
README
This is a PHP CRUD following the MVC architectural pattern.
Feature list
- This application follows the Standard PHP Package Skeleton
- Has a query builder wrapper around PDO
- Has a basic router
- Has a command line tool called
runwhich can be invoked byphp run - Has a basic migration system that creates database tables
- Uses Bootstrap 4
Installation Instructions
composer create-project raham/pipra pipracd pipra- Create a database
- Rename
config/database.example.phptoconfig/database.php(mv config/database.example.php config/database.php) - Change database configurations in
config/database.phpif necessary. - Edit the
config/app.php. The app won't work if you don't put the url field properly. composer installphp run migrate allphp run seed all- Change directory to the public folder (
cd public) and use php's development server (php -S localhost:8080) - Open up a browser and go to http://localhost:8080
Run Command
php run invokes the run cli tool.
Available commands
php run migrate table [table_name]migrates a table which is specified in the migrations list (database/migrations/Migrations.php).php run migrate allmigrates all tables in the migrations list.php run seed table [table_name]seeds a table which is specified in the seeders list (database/seeders/Seeders.php).php run seed allseeds all tables in the seeders list.php run drop table [table_name]drops a table which is specified in the migrations list.php run drop alldrops all tables in the migrations list.
Create a migration file
- Create a migration file inside
database/migrationsfolder. - See the
database/migrations/posts_table.phpfor a migration file structure. - See the
src/Database/Table.phpfor the Table class API. This is just experimental, doesn't have the full set of tools which you might find in a typical migration library. - Add the table name and the migration file's class name as
key,valuepair inside the migrations list's (database/migrations/Migrations.php)listfunction.
raham/pipra 适用场景与选型建议
raham/pipra 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 raham/pipra 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 raham/pipra 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-24