定制 devtical/laravel-helpers 二次开发

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

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

devtical/laravel-helpers

最新稳定版本:2.0.0

Composer 安装命令:

composer require devtical/laravel-helpers

包简介

Helper Generator for Laravel

README 文档

README

Helper Generator for Laravel

Installation

Install via composer

composer require devtical/laravel-helpers

Optional

Publish the config by running the php artisan vendor:publish command.

Configure your helper directory:

# In your .env file
HELPER_DIRECTORY=Helpers

Usage

Create your first helper file:

php artisan make:helper <NAME>

Add your helper functions:

<?php

if (!function_exists('str_slug')) {
    function str_slug($text, $separator = '-')
    {
        return Str::slug($text, $separator);
    }
}

Use your helper functions anywhere:

// In your controllers, models, views, etc.
$slug = str_slug('Hello World'); // Returns: hello-world

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security related issues, please email author instead of using the issue tracker.

Credits

License

This package is open-sourced software licensed under the MIT license.

Support

If you have any questions or need help, please open an issue on GitHub.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-23