承接 plasmaconduit/path 相关项目开发

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

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

plasmaconduit/path

最新稳定版本:0.1.1

Composer 安装命令:

composer require plasmaconduit/path

包简介

README 文档

README

Build Status

Simple and care free file path concatenation and simplification.

<?php
use PlasmaConduit\Path;

Path::join("wat", "lol");              // -> wat/lol
Path::join("/a", "///b");              // -> /a/b
Path::join("/a", "b", "c", "..", "d"); // -> /a/b/d

Path::normalize("/a/b/c/../d");       // -> /a/b/d
Path::normalize("/a/b/c/../../d");    // -> /a/d
Path::normalize("/b/wat//");          // -> /b/wat/
Path::normalize("/b///wat/");         // -> /b/wat/
Path::normalize("");                  // -> .
Path::normalize("/");                 // -> /

Public Interface

namespace PlasmaConduit;

class Path {

    /**
     * This function takes a variable amount of strings and joins
     * them together so that they form a valid file path.
     *
     * @param {String ...} $peice - The peices of the file path
     * @returns {String}          - The final file path
     */
    static public function join();

    /**
     * This function takes a valid file path and nomalizes it into
     * the simplest form possible.
     *
     * @param {String} $path - The path to normalize
     * @returns {String}     - The normailized path
     */
    static public function normalize($path);

}

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-01-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固