infinitietech/custom-view-laravel
Composer 安装命令:
composer require infinitietech/custom-view-laravel
包简介
A powerful and flexible Laravel package that extends the default view generation capabilities with customizable templates, layouts, and file management features
README 文档
README
A powerful and flexible Laravel package that extends the default view generation capabilities with customizable templates, layouts, and file management features. Created and maintained by infinitietech05.
📅 Version Compatibility
| Laravel Version | Package Version | PHP Version |
|---|---|---|
| 10.x | 1.x | >= 8.1 |
| 9.x | 1.x | >= 8.0 |
| 8.x | 1.x | >= 7.4 |
🚀 Features
- Create views with predefined templates (simple, blank, resource)
- Extend layout templates
- Add multiple sections to views
- Include Blade components
- File management operations (move, delete)
- File permission management
- Template shortcuts for common configurations
📋 Requirements
- PHP >= 7.4
- Laravel >= 8.0
⚙️ Installation
You can install the package via composer:
composer require infinitietech/custom-view-laravel
🔧 Usage
Basic View Creation
# Create a simple view php artisan make:custom-view blog.index # Create a view with specific type php artisan make:custom-view blog --type=resource
Layout and Sections
# Create a view extending a layout php artisan make:custom-view blog.create --extend=layouts.app # Create a view with sections php artisan make:custom-view blog.edit --extend=layouts.app --section=content --section=scripts
Components
# Create a view with components
php artisan make:custom-view blog.index --component=navbar --component=footer
File Management
# Move a view php artisan make:custom-view old-view --manage=move --from=old-location --to=new-location # Delete a view php artisan make:custom-view unused-view --manage=delete
File Permissions
# Set file permissions
php artisan make:custom-view blog.index --permission --chmod=644 --owner=www-data --group=www-data
📖 Command Reference
make:custom-view {name} [options]
Arguments
name: The view name (e.g., "blog.index")
Options
| Option | Description | Example |
|---|---|---|
--type |
View type (simple, blank, resource) | --type=resource |
--extend or -E |
Layout template to extend | --extend=layouts.app |
--section or -S |
Sections to include (multiple allowed) | --section=content |
--component or -C |
Components to include (multiple allowed) | --component=navbar |
--manage or -M |
Manage operation (delete or move) | --manage=move |
--from |
Source view name for moving | --from=old-view |
--to |
Destination view name for moving | --to=new-view |
--permission or -P |
Apply file permission settings | --permission |
--chmod |
The chmod value | --chmod=644 |
--owner |
File owner | --owner=www-data |
--group |
File group | --group=www-data |
--template or -T |
Shorthand template option | --template |
🔍 Examples
Creating a Blog Post View
php artisan make:custom-view blog.post --type=resource --extend=layouts.app --section=content --section=meta --component=share-buttons
Setting Up an Admin Dashboard
php artisan make:custom-view admin.dashboard --type=blank --extend=layouts.admin --section=main --component=stats --component=charts --permission --chmod=644
📦 Configuration
Publish the configuration file:
php artisan vendor:publish --provider="infinitietech\CustomView\CustomViewServiceProvider"
This will create a config/custom-view.php file where you can modify various settings:
return [ 'default_type' => 'simple', 'default_permissions' => [ 'chmod' => '644', 'owner' => 'www-data', 'group' => 'www-data', ], 'template_paths' => [ 'custom' => resource_path('views/templates'), ], ];
⚗️ Testing
composer test
🔄 Changelog
All notable changes to custom-view-laravel are documented in CHANGELOG.md
🎯 Roadmap
- Add support for view caching
- Implement template presets
- Add interactive mode
- Support for view components generation
🛟 Support
Issues and Questions
For bug reports and feature requests, please use the GitHub Issues.
Community
- Follow @infinitietech05 on GitHub
- Join our Discord community
🤝 Contributing
Please see CONTRIBUTING.md for details.
🔒 Security
If you discover any security-related issues, please email security@infinitietechnologies.com instead of using the issue tracker.
📊 Package Statistics
- Latest Release: v1.0.0
- Release Date: 2025-04-09 06:13:25 UTC
- Maintained by: @infinitietech05
- Downloads: View on Packagist
📝 License
The MIT License (MIT). Please see License File for more information.
👥 Credits
Last updated: 2025-04-09 06:13:25 UTC
infinitietech/custom-view-laravel 适用场景与选型建议
infinitietech/custom-view-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 11, 最近一次更新时间为 2025 年 04 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「generator」 「templates」 「laravel」 「views」 「blade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 infinitietech/custom-view-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 infinitietech/custom-view-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 infinitietech/custom-view-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Shoot aims to make providing data to your templates more manageable
CakePHP 4.x AdminLTE Theme.
Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting
CakePHP 3.x Gentelella Theme.
Bundle to Mass-Modify Twig Templates
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-09