php librarys
v2.1.3
php的一些有用的基础工具库实现和搜集
包含:依赖服务容器、静态资源加载、认证、命令行应用、数据收集器、依赖注入、环境信息、事件调度、文件系统、html元素、http请求库、进程控制、队列、任务管理、各种帮助类库
这是基于 php7 的分支。 如果你使用的是 php5, 请查看 php5 分支(不再维护)。
注意:
php >= 7 的(推荐使用)。php >= 5.5 的代码分支(不再维护)。composer require inhere/library
在 "require" 下添加
"inhere/library": "dev-master" // 推荐
// OR
"inhere/library": "^2.0"然后执行: composer update
git clone https://gitee.com/inhere/php-librarys.git // git@osc
git clone https://github.com/inhere/php-librarys.git // github
InhereLibraryCollections 数据收集器. (数据收集/全局配置 管理)InhereLibraryComponents 一些有用的组件(有些可能是提供思路参考)
AopProxy.php 简单的 AOP 实现DataProxy.php 简单的数据访问代理实现ErrorHandler.php 错误处理Language.php 提供语言管理,语言包处理类DatabaseClient.php 一个简单的 PDO database 操作封装MemcacheClient.php 一个简单的memcache(d)封装RedisClient.php 一个简单的 redis 操作封装Pipeline.php 一个简单的Pipeline实现封装InhereLibraryDI 依赖注入容器,提供全局服务管理InhereLibraryFiles 文件系统操作(文件(夹)读取,检查,创建);
FileFinder.php 文件查找Parsers/* 常用的 json ini yml 文件解析工具封装InhereLibraryHelpers 涵盖了各个方面的辅助类库(string array object date url curl php format json cli data env ... ...)InhereLibraryTraits 各种常用的traits(ArrayAccess GetterSetterAccess SimpleAlias SimpleConfig SimpleEvent ... ...)InhereLibraryUtils 一些独立的工具类(autoloader logger token uuid ... ...)InhereLibraryWeb web相关工具类(session cookie Environment ViewRenderer)functions.php 一些有用的函数InhereLibraryPlusauth 用户认证管理,权限检查实现参考InhereLibraryPlusenv 环境信息收集, Server: 服务端信息. Client: 客户端信息InhereLibraryPlusFiles 文件系统功能扩展。 文件系统操作(文件(夹)读取,检查,创建);文件上传/下载,图片处理(缩略图/水印),图片验证码生成InhereLibraryPlusasset 资源(css,js)管理,加载,发布InhereLibraryPlushtml html 元素创建, dom 创建InhereLibraryPlusnetwork network 工具库(telnet)Document
inhere/validate github git@osc一个简洁小巧且功能完善的php验证库。仅有几个文件,无依赖。
inhere/event github git@oscphp事件管理器,事件调度器 psr-14实现
inhere/http github git@oscphp http消息库, 实现psr7 http消息接口
inhere/http-client github git@oschttp 工具库(request 请求 response 响应 curl curl请求库,有简洁、完整和并发请求三个版本的类)
inhere/queue github git@oscphp的队列实现,使用包装(DbQueue LevelDbQueue PhpQueue RedisQueue ShmQueue SSDBQueue SysVQueue)
inhere/console github git@osc轻量级的命令行应用,工具库, 控制台交互.
轻量级且快速的路由器实现.
基于 swoole 的server实现, 方便快速的构建和管理自己的 swoole 服务器
php 的 gearman workers 管理工具。同时启动并管理多个gearman worker,并会监控运行状态。可以自定义worker数量,也可以针对job设置worker数量。还可以让worker专注指定的job
MIT