codewithdennis/larament
Composer 安装命令:
composer create-project codewithdennis/larament
包简介
Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.
README 文档
README
A bloat-free starter kit for Laravel 13.x with FilamentPHP 5.x pre-configured. Only essential development tools included.
Note
Requires PHP 8.3 or higher.
What's Included
Core Dependencies
- Laravel 13.x - The PHP framework
- FilamentPHP 5.x - Admin panel with SPA mode, custom theme, and MFA enabled
- nunomaduro/essentials - Better Laravel defaults (strict models, auto-eager loading, immutable dates)
Development Tools
- larastan/larastan - Static analysis
- laravel/pint - Code style fixer
- pestphp/pest - Testing framework
- rector/rector - Automated refactoring
- fruitcake/laravel-debugbar - Development insights
Testing
Includes a comprehensive test suite with PEST 4.x including browser testing - perfect for learning testing or as a reference for your own tests.
GitHub Workflows
Comes with pre-configured GitHub Actions workflows for automated quality assurance:
- Tests - PEST 4.x testing with 4 parallel shards for faster CI/CD
- PHPStan - Static analysis and type checking
- Pint - Automated code style fixing with auto-commit
- Rector - Automated refactoring checks in dry-run mode
Quick Start
New project
composer create-project codewithdennis/larament your-project-name
cd your-project-name
php artisan boost:install
php artisan serve
composer create-project runs the project installer automatically (environment file, database, assets, and front-end build).
Existing checkout
composer setup php artisan boost:install php artisan serve
composer setup installs PHP and Node dependencies, prepares .env, generates an app key, runs migrations, and builds front-end assets.
After setup, run php artisan boost:install once per project. Laravel Boost writes the editor and assistant integrations this stack expects—guidance rules, MCP configuration, and the rest—already scoped to your paths and environment. Those files are intentionally omitted from the starter kit, so you generate them locally after install.
If you use an AI-powered editor or coding assistant, enable MCP (Model Context Protocol) for this project in that tool’s settings, then turn on the Laravel Boost MCP server. Your assistant can then reach Boost’s Laravel-aware tools instead of working without project context.
Features
Filament Admin Panel
- SPA mode enabled
- Custom login page with autofilled credentials in local environment
- Custom theme included
- Profile management enabled
- MFA (App Authentication) enabled
Filament Tables
- Striped rows for better visual separation
- Deferred loading for improved performance
Development Workflow
composer review # Runs Pint, Rector, PHPStan, and Pest
Customizations
Migration Stubs
Custom stubs remove the down() method by default. Remove the custom stubs to use Laravel's default templates.
Helper Functions
Add your own helpers in app/Helpers.php:
if (! function_exists('example')) { function example(): string { return 'Your helper function here.'; } }
Terminal Aliases
Simple Alias
alias larament="composer create-project --prefer-dist CodeWithDennis/larament" larament my-project
Advanced Function (Example with Herd)
Add this to your ~/.bashrc, ~/.zshrc, or shell configuration file:
function larament() { local cmd="$1" shift case "$cmd" in new) if [[ -z "$1" ]]; then return 1 fi local project_name="$1" composer create-project --prefer-dist CodeWithDennis/larament "$project_name" || return 1 cd "$project_name" || return 1 # Update APP_URL in .env if [[ -f ".env" ]]; then sed -i '' "s|^APP_URL=.*|APP_URL=https://${project_name}.test|" .env fi herd link --secure && herd open ;; *) return 1 ;; esac }
Usage:
larament new my-project
codewithdennis/larament 适用场景与选型建议
codewithdennis/larament 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 1.79k 次下载、GitHub Stars 达 401, 最近一次更新时间为 2024 年 09 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 「starter-kit」 「filamentphp」 「larament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 codewithdennis/larament 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 codewithdennis/larament 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 codewithdennis/larament 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
A modern PHP starter kit with MVC.
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
The starter kit with Laravel and VueJS
统计信息
- 总下载量: 1.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 401
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-05


