承接 framesnpictures/el-helper 相关项目开发

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

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

framesnpictures/el-helper

最新稳定版本:v1.2

Composer 安装命令:

composer require framesnpictures/el-helper

包简介

Re-usable Helper Libraries

README 文档

README

CircleCI

Number of helpers to be used in other modules.

The following helpers are currently in use:

Class Description
Fnp\ElHelper\Arr Extends the Laravel's Arr Object with hashing functionality.
Fnp\ElHelper\Flg Binary flags manipulation library.
Fnp\ElHelper\Iof Checks if the given object implements particular functionality.
Fnp\ElHelper\Obj Object manipulation library.
Fnp\ElHelper\Str String manipulation library. Adds support for some edge cases when converting strings.

Arr Helper

Introduces hash function that generates the same hash for the array with the same content. It extends Laravel's Arr object.

Flg Helper

Allows manipulation of binary flags. Allows to check for the given flag is enabled in integer value, as well as adding and removing the values.

Method Description
has Checks if the given flag exists in the flags value.
not Check if the given flag is absent in the flags value.
clear Removes the given flag from the flags value.
set Sets the given flag in the flags value.

Iof Helper

This helper checks if the given object implements the the particular functionality. It does that in various way including checking implemented interfaces, having a particular properties or methods exposed.

Method Description
arrayable Does given object can be converted to array using toArray method?
jsonable Does given object can be converted to JSON using toJson method?
stringable Does given object can be casted to string?
collection Does given object is a collection?
traversable Does given object can be traversed using foreach method?
eloquentModel Does given object is an eloquent model?
serializable Can the given object be serialized using __serialize magic method?

Obj Helper

This helper allow the manipulation of the objects or reading certain properties of the given objects.

Method Description
properties Retrieves the properties of the given object.
key Generates the unique key for the given value. It might be the object, array or any primitive value.
methodName Generates the method name string based on prefix, name and suffix.
methodExists Checks if the method generated based on prefix, name and suffix exists in a given object.

Str Helper

This helper extends the Laravel's Str object and "fixes" few edge cases for the camel and snake methods. Additionaly it introduces new isAllCaps methods. Please see the tests for additional edge cases covered.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固