Implementation and collection of some useful basic tool libraries for PHP
Includes: dependent service container, static resource loading, authentication, command line application, data collector, dependency injection, environment information, event scheduling, file system, html element, http request library, process control, queue, task management, various help Class library
This is a fork based on php7. If you are using php5, please check out the php5 branch (no longer maintained).
Notice:
php >= 7
(recommended).php >= 5.5
(no longer maintained). composer require inhere/library
Add under "require"
"inhere/library" : " dev-master " // 推荐
// OR
"inhere/library" : " ^2.0 "
Then execute: composer update
git clone https://gitee.com/inhere/php-librarys.git // git@osc
git clone https://github.com/inhere/php-librarys.git // github
InhereLibraryCollections
data collector. (Data Collection/Global Configuration Management)InhereLibraryComponents
useful components (some may provide reference ideas)AopProxy.php
simple AOP implementationDataProxy.php
simple data access proxy implementationErrorHandler.php
error handlingLanguage.php
provides language management and language package processing classesDatabaseClient.php
a simple PDO database operation encapsulationMemcacheClient.php
a simple memcache(d) packageRedisClient.php
a simple redis operation encapsulationPipeline.php
is a simple Pipeline implementation encapsulationInhereLibraryDI
dependency injection container provides global service managementInhereLibraryFiles
file system operations (file (folder) reading, checking, creating);FileFinder.php
file searchParsers/*
commonly used json ini yml
file parsing tool packageInhereLibraryHelpers
covers various aspects of auxiliary class libraries ( string array object date url curl php format json cli data env
...)InhereLibraryTraits
Various commonly used traits ( ArrayAccess
GetterSetterAccess
SimpleAlias
SimpleConfig
SimpleEvent
... ...)InhereLibraryUtils
some independent tool classes ( autoloader logger token uuid
...)InhereLibraryWeb
web related tool classes ( session cookie Environment ViewRenderer
)functions.php
Some useful functionsInhereLibraryPlusauth
user authentication management, permission check implementation referenceInhereLibraryPlusenv
environment information collection, Server
: server information. Client
: client informationInhereLibraryPlusFiles
system function extension. File system operations (file (folder) reading, checking, creating); file upload/download, image processing (thumbnail/watermark), image verification code generationInhereLibraryPlusasset
resource (css, js) management, loading, publishingInhereLibraryPlushtml
html element creation, dom creationInhereLibraryPlusnetwork
network tool library ( telnet
)Document
inhere/validate
github git@oscA simple, compact and fully functional PHP verification library. Just a few files and no dependencies.
inhere/event
github git@oscPHP event manager, event scheduler psr-14 implementation
inhere/http
github git@oscphp http message library, implements psr7 http message interface
inhere/http-client
github git@osc http tool library ( request
request response
response curl
curl request library, there are three versions of concise, complete and concurrent request classes)
inhere/queue
github git@osc PHP's queue implementation, using wrapper ( DbQueue
LevelDbQueue
PhpQueue
RedisQueue
ShmQueue
SSDBQueue
SysVQueue
)
inhere/console
github git@oscLightweight command line application, tool library, and console interaction.
A lightweight and fast router implementation.
Based on swoole server implementation, you can quickly and easily build and manage your own swoole server.
PHP gearman workers management tool. Start and manage multiple gearman workers at the same time, and monitor the running status. You can customize the number of workers or set the number of workers for the job. You can also let workers focus on specified jobs
MIT