定制 rudashi/fluent-regex 二次开发

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

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

rudashi/fluent-regex

最新稳定版本:2.0.0

Composer 安装命令:

composer require rudashi/fluent-regex

包简介

Elegant way for PHP regex

README 文档

README

Codacy Badge codecov GitHub Actions Workflow Status GitHub last commit
GitHub repo size Total Downloads GitHub License

This package provides a simple way to create regular expression in a fluent way.

Fluent Regex is a library in PHP that simplifies the creation and management of regular expressions through the use of fluent syntax. Traditional regular expressions can be difficult to read and understand, especially when they become complex. Fluent Regex solves this problem by allowing you to build regular expressions using a readable and intuitive object-oriented interface.

If you thought that finding a needle in a haystack was impossible, this repository is for you.

Installation

Install the package via Composer

composer require rudashi/fluent-regex

Version Guidance

Version Branch PHP Version Composer Install
v2.x master ^8.2 composer require rudashi/fluent-regex
v1.x 1.x ^8.1 composer require rudashi/fluent-regex:^1.0

Usage

$regex = Rudashi\Regex::build()
    ->startOfLine()
    ->capture(fn (FluentBuilder $fluent) => $fluent->find('http')->or->find('https'))
    ->then('://')
    ->ignoreCase();

$regex->dump();
// /^(http|https)\:\/\//i

$match = Regex::for('https://100commitow.pl/')->find('100commitow')->check();
// True

Documentation

The Fluent Regex documentation is extensive and complete, making getting started with regular expression syntax a breeze.

Changelog

Detailed changes for each release are documented in the CHANGELOG.md.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 26
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固