定制 parseword/pickset 二次开发

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

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

parseword/pickset

Composer 安装命令:

composer require parseword/pickset

包简介

A collection of PHP utilities to unlock various functionality in your applications

README 文档

README

A collection of PHP utilities to "unlock" various capabilities in your applications. pickset is comprised of several classes:

  • DatabaseConnection - a PDO connection wrapper, implemented as a singleton

  • DateUtils - methods for converting and working with dates and epoch values

  • FileUtils - methods for interacting with files and directories

  • Exception\LoggedException - an Exception that uses Logger to write a log entry even if it's caught

  • Logger - a text file logging facility, implemented as a singleton

  • TextUtils - methods for parsing and manipulating text strings

Requirements

  • PHP 7.1 or better; some functions now have nullable return type declarations which aren't supported in older PHP versions.

Installation

You can install pickset either with or without Composer.

With Composer

Use Composer to require pickset into your project.

[user@host]$ composer require parseword/pickset

Require Composer's autoloader, alias whichever classes you want with the use statement for convenience, and go to town.

<?php
require_once(__DIR__ . '/vendor/autoload.php');

use parseword\pickset\{
    DateUtils
};

echo 'The first second of today was ' . DateUtils::firstSecondOfDay() . PHP_EOL;

Without Composer

Use git to clone pickset into a subdirectory of your project.

[user@host]$ git clone https://github.com/parseword/pickset.git pickset

In your code, you'll need to import the manual autoloader before you can use any of the classes, e.g.

<?php
require_once 'pickset/autoload-surrogate.php';

use parseword\pickset\{
    TextUtils
};

echo '3409873325 bytes is ' . TextUtils::bytesToHuman(3409873325) . PHP_EOL;

Usage

There's no thorough documentation yet outside of the code comments. I needed to get this onto packagist quickly to import it from some other projects.

I'll add more documentation as time permits.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固