定制 wulfheart/lxcd 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

wulfheart/lxcd

最新稳定版本:v0.1.4

Composer 安装命令:

composer require wulfheart/lxcd

包简介

Blade x-component documentation

README 文档

README

LXCD, short for Laravel x-Components Discovery, is a package aimed to make the new Laravel Blade x-components discoverable so you don't have to remember every single parameter.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You are using Laravel 7.x or higher.
  • You document your code with phpDocumentor or no system at all.
  • You haven't opted out of Laravel's Package Discovery. If you have I'm assuming that you are able to register the package by yourself.

Installation

composer require wulfheart/lxcd

Usage

Basic

LXCD hooks into phpDocumentor's in-code-documentation. To document your code add the following comment over your component class' __construct method.

/**
     * Label
     * 
     * Description
     *
     * @param   string  $var_with_default  Parameter Description {@default default_val}
     * @param   string  $var_without_default     Parameter description.
     *
     */
    public function __construct(string $var_with_default = 'default_val', string $var_without_default)
    {
        #code...
    }

This will result in the documentation below:

Rendered component card

You can access LXCD via <your-app.url>/lxcd. Please note that LXCD also discovers subfolders of your components.

Advanced

If you are using a different base namespace for your components than App\View\Components or a different package installation location than ./vendor/wulfheart/lxcd you may override LXCD's default settings via your .env file:

LXCD_COMPONENTS_PATH = this\is\your\custom\path\to\your\components\root
LXCD_COMPONENTS_NAMESPACE = your\custom\base\namespace 

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

If you experience any problems, bugs or have feature requests feel free to open an issue.

Roadmap 🚧

  • Make the blade component easily copiable
  • Preview the component visually (this might be quite complicated 😅)
  • ❓ Make a feature request.

Contact

Follow me on Twitter or open an issue.

License

This project is licensed under the MIT License. Please refer to the LICENSE file.

统计信息

  • 总下载量: 3.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固