marcossegovia/petcetera 问题修复 & 功能扩展

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

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

marcossegovia/petcetera

Composer 安装命令:

composer require marcossegovia/petcetera

包简介

Petcetera is a php library to provide output raw concatenation of elements with commas and terminators of different languages.

README 文档

README

#Petcetera

A php library to provide output raw concatenation of elements with commas and terminators of different languages.

Installation

$ composer require marcossegovia/petcetera;

Usage

Given an array of string elements like the following:

    $my_array_of_string_elements = [
        'element1',
        'element2',
        'element3',
        'element4'
    ];

Then you only have to instantiate Petcetera and use call it as a function, on:

  • 1st parameter is your array of elements.
  • 2on parameter is a locale string specifying the language you want to provide for the terminator.
        $petcetera_instance   = new Petcetera();
        $resulting_string = $petcetera_instance($my_array_of_string_elements, 'en_GB'); // outputs: element1, element2, element3 and element4
        $resulting_string2 = $petcetera_instance($my_array_of_string_elements, 'es_ES'); //outputs: element1, element2, element3 y element4

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固