承接 emeraldion/tramezzino 相关项目开发

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

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

emeraldion/tramezzino

Composer 安装命令:

composer require emeraldion/tramezzino

包简介

Converts a list of strings into a compact, readable representation with delimiters of choice

README 文档

README

Build Status Coverage Status Latest Unstable Version composer.lock Total Downloads Monthly Downloads

tramezzino

Converts a list of strings into a compact, readable representation with delimiters of choice

tramezzino.php 'alba,albero,albergo,alberto'
# => alb(a|er(go|o|to))

tramezzino.php 'aria:arianna' ':' '[' '+' ']'
# => aria[+nna]

What?

In Italian, tramezzino means sandwich. The name hints at the strings being sliced and interleaved with bread, the delimiters. Tramezzino is the PHP port of the Node module sarnie.

Why?

Useful when you need to pass long lists of URL params

Composer

Add it to your PHP project using Composer:

composer require emeraldion/tramezzino

Then have it your way:

<?php
use Emeraldion\Tramezzino\Tramezzino;

$encoded = Tramezzino::encode(array('alba', 'albero', 'albergo', 'alberto'), '(', '|', ')');
// $encoded == 'alb(a|er(go|o|to))'
?>

License

MIT

Copyright (c) 2017-2023, Claudio Procida

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固