aternus/stringy-patterns
Composer 安装命令:
composer require aternus/stringy-patterns
包简介
A PHP string pattern detection library with multibyte support
README 文档
README
A PHP string pattern detection library with multibyte support.
use Stringy\Patterns as P; // get all patterns $results_array = P::create('abcdabcdab')->getPatterns(); // get all patterns, include single occurrences $results_array = P::create('abcdabcdab')->getPatterns(true);
Why?
Patterns are all around us, perhaps you will find something useful.
Installation
If you're using Composer to manage dependencies:
composer require aternus/stringy-patterns
Then, after running composer update, you can load the class using Composer's autoloading:
require 'vendor/autoload.php';
Otherwise, you can simply require the file directly:
require_once 'vendor/aternus/stringy-patterns/src/Patterns.php';
And in either case, I'd suggest using an alias.
use Stringy\Patterns as P;
Please note that Stringy Patterns relies on the mbstring module for its underlying
multibyte support. If the module is not found, and as long as you've installed
Stringy Patterns using composer, Stringy Patterns will use
symfony/polyfill-mbstring.
For OSX users, it's a default for any version of PHP installed with homebrew.
If compiling PHP from scratch, it can be included with the --enable-mbstring flag.
Other Useful Libraries
- Stringy: A PHP string manipulation library with multibyte support
License
Released under the MIT License - see LICENSE.md for details.
aternus/stringy-patterns 适用场景与选型建议
aternus/stringy-patterns 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 12 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「helpers」 「pattern」 「utility」 「utf-8」 「detection」 「utils」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aternus/stringy-patterns 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aternus/stringy-patterns 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aternus/stringy-patterns 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of enhancements and utilities for the Silverstripe UserForms module
Extends TYPO3 EXT:seo hreflang functionality
PHP7 utility classes
A Laravel package for the Repository Design Pattern.
HTML and form generation
Inbox pattern process implementation for your Laravel Applications
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-31