minibase-app/minilib 问题修复 & 功能扩展

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

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

minibase-app/minilib

Composer 安装命令:

composer require minibase-app/minilib

包简介

A collection of random, quality of life functions for PHP – a sort of kitchen-sink toolbox.

README 文档

README

Latest Stable Version Latest Unstable Version Test Status

Maintenance Packagist PHP from Packagist composer.lock available license


A collection of random, quality of life functions for PHP – a sort of kitchen-sink toolbox.

Requirements

There are not many requirements for this library; infact, the only true requirement is PHP, but if you plan to contribute, having GNU Make installed will make for nicer dev experience than without.

Requirement Version
PHP ^7.2
Make (dev only) ^3.81

Installation

Nothing much to do but require the library in your own project's composer dependencies!

$ composer require minibase-app/minilib

Once you have the library installed, head over to the list of available functions to shop around.

Development

  1. Start by cloning the project to your own machine.
  2. Move yourself into the newly cloned repository directory.
  3. Run make to install dev dependencies.
$ git clone https://github.com/minibase-app/minilib.git \
    && cd ./minilib \
    && make vendor \
    && make;

Usage

As mentioned in the Requirements section of this document, having GNU Make installed on your system will make for nice development experience while contributing. To get started, run Make without any targets or arguments:

$ make

And you will be greeted with the list of targets for this project!

Usage:
  make [target] [arg="val"...]

Targets:
  analysis        Run analysis
  help            Show this help message
  repl            Start a REPL instance and interact with the library
  test            Run tests
  vendor          Install vendor dependencies

Try Me

If you're not sure that this library is right for you, can "try before you buy". Start by installing the project for development, and then simply boot up the REPL packaged with the repository!

$ make repl

Using the functions is easy – just make sure that you preface your functions with the projects namespace first.

λ Minibase\is_console() # true
λ Minibase\is_web()     # false

Available Functions

This is a non-exhaustive list – see the src/ directory for a full list!

Array Functions

  • append
  • array_make
  • generate
  • head
  • is_associative
  • only
  • prepend
  • tail
  • wrap

Number Functions

  • between
  • ordinal
  • random_float

Object Functions

N/A

String Functions

  • append
  • camel_case
  • class_basename
  • kebab_case
  • pascal_case
  • prepend
  • snake_case
  • str_random

Miscellaneous Functions

  • blank
  • retry
  • swap
  • tap
  • transform
  • value
  • with

minibase-app/minilib 适用场景与选型建议

minibase-app/minilib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 4, 最近一次更新时间为 2021 年 04 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 minibase-app/minilib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 minibase-app/minilib 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-30