infinitietech/custom-view-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

PHP Version Laravel Version Latest Version on Packagist License Maintainer

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

🤝 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

📝 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 infinitietech/custom-view-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-09