承接 hitechnix/support 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

hitechnix/support

最新稳定版本:v7.0.0

Composer 安装命令:

composer require hitechnix/support

包简介

Flexible helper methods & traits for commonly used functionalities.

README 文档

README

A support package that provides flexible and reusable helper methods and traits for commonly used functionalities.

📦 Requirements

The package requires PHP 8.0+ and follows the FIG standard PSR-4 to ensure a high level of interoperability between shared PHP code and is fully unit-tested.

📋 Features

  • Easy register an event listener with the dispatcher.
  • Easy begin the process a mailable.
  • Easy to validate your application's incoming data.
  • Allowing you to subscribe and listen for various events that occur within your application easily.
  • And much more!

🔧 Installation

Install the package with the below command:

composer require hitechnix/support

📝 Usage

In this section, we'll show how you can make use of the available traits.

  • The EventTrait makes it easy to add dispatching abilities to your classes.
<?php

use Hitechnix\Support\Traits\EventTrait;

class FooRepository
{
    use EventTrait;

    public function foo()
    {
        $this->fireEvent('foo');
    }
}
  • The RepositoryTrait makes it easy to create new instances of a model and to retrieve or override the model during runtime.
use Hitechnix\Support\Traits\RepositoryTrait;

class FooRepository
{
    use RepositoryTrait;

    public function foo()
    {
        return $this->createModel();
    }
}

📨 Message

I hope you find this useful. If you have any questions, please create an issue.

🔐 Security

If you discover any security-related issues, please email support@hitechnix.com instead of using the issue tracker.

📖 License

This software is released under the BSD 3-Clause License. Please see the LICENSE file or https://opensource.hitechnix.com/LICENSE.txt for more information.

✨ Contributors

Thanks goes to these wonderful people (emoji key):

Son Tran Thanh
Son Tran Thanh

🔧 🚇 🚧 💻 📖 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-11-28