Skip to content

Commit

Permalink
update namespace to 'ToolkitPlus'
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 30, 2018
1 parent 8604e03 commit c6b16b3
Show file tree
Hide file tree
Showing 67 changed files with 219 additions and 813 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# php library plus
# php toolkit plus

php的一些有用的工具库实现。

基础库:

- 数据收集器(in `inhere/library`)
- 依赖注入容器(in `inhere/library`)
- 基础文件系统工具(in `inhere/library`)
- 各种帮助类库(in `inhere/library`)

扩展库:
php的一些有用的扩展工具库实现。

- 静态资源加载
- 认证
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "inhere/library-plus",
"name": "toolkit/toolkit-plus",
"type": "library",
"description": "some useful library of the php",
"keywords": ["library","tool","php"],
"homepage": "https://github.com/inhere/php-library-plus",
"homepage": "https://github.com/php-toolkit/toolkit-plus",
"license": "MIT",
"authors": [
{
Expand All @@ -13,12 +13,12 @@
}
],
"require": {
"php": ">=7.0.0",
"inhere/library": "dev-master"
"php": ">7.0",
"toolkit/toolkit": "dev-master"
},
"autoload": {
"psr-4": {
"Inhere\\LibraryPlus\\" : "libs/"
"ToolkitPlus\\" : "libs/"
}
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion examples/telnet.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

printf("Connect to the server {$host}:{$port}");

$tt = new \Inhere\LibraryPlus\Network\Telnet($host, $port);
$tt = new \ToolkitPlus\Network\Telnet($host, $port);

// var_dump($tt);die;

Expand Down
2 changes: 1 addition & 1 deletion libs/Asset/AssetBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 上午11:11
*/

namespace Inhere\LibraryPlus\Asset;
namespace ToolkitPlus\Asset;

use Inhere\Library\StdObject;

Expand Down
2 changes: 1 addition & 1 deletion libs/Asset/AssetHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 上午12:33
*/

namespace Inhere\LibraryPlus\Asset;
namespace ToolkitPlus\Asset;

/**
* Class AssetHelper
Expand Down
4 changes: 2 additions & 2 deletions libs/Asset/AssetLoad.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 下午9:43
*/

namespace Inhere\LibraryPlus\Asset;
namespace ToolkitPlus\Asset;

use Inhere\Exceptions\FileNotFoundException;
use Inhere\Exceptions\FileSystemException;
Expand All @@ -17,7 +17,7 @@
use Inhere\Library\Files\File;
use Inhere\Library\Helpers\UrlHelper;
use Inhere\Library\StdObject;
use Inhere\LibraryPlus\Html\Html;
use ToolkitPlus\Html\Html;
use MatthiasMullie\Minify;

/**
Expand Down
4 changes: 2 additions & 2 deletions libs/Asset/AssetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Time: 下午9:44
*/

namespace Inhere\LibraryPlus\Asset;
namespace ToolkitPlus\Asset;

use Inhere\Exceptions\InvalidArgumentException;
use Inhere\Library\Helpers\UrlHelper;
use Inhere\Library\StdObject;
use Inhere\LibraryPlus\Html\Html;
use ToolkitPlus\Html\Html;

/**
* 前端资源加载管理
Expand Down
2 changes: 1 addition & 1 deletion libs/Asset/AssetPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 下午9:53
*/

namespace Inhere\LibraryPlus\Asset;
namespace ToolkitPlus\Asset;

use Inhere\Exceptions\FileSystemException;
use Inhere\Exceptions\InvalidArgumentException;
Expand Down
4 changes: 2 additions & 2 deletions libs/Auth/AccessChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 下午4:51
*/

namespace Inhere\LibraryPlus\Auth;
namespace ToolkitPlus\Auth;

/**
* Class AccessChecker
* @package Inhere\LibraryPlus\Auth
* @package ToolkitPlus\Auth
*/
class AccessChecker implements CheckAccessInterface
{
Expand Down
4 changes: 2 additions & 2 deletions libs/Auth/CheckAccessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 下午4:53
*/

namespace Inhere\LibraryPlus\Auth;
namespace ToolkitPlus\Auth;

/**
* Interface CheckAccessInterface
* @package Inhere\LibraryPlus\Auth
* @package ToolkitPlus\Auth
*/
interface CheckAccessInterface
{
Expand Down
2 changes: 1 addition & 1 deletion libs/Auth/IdentityInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 下午4:29
*/

namespace Inhere\LibraryPlus\Auth;
namespace ToolkitPlus\Auth;

/**
* IdentityInterface is the interface that should be implemented by a class providing identity information.
Expand Down
4 changes: 2 additions & 2 deletions libs/Auth/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 上午11:08
*/

namespace Inhere\LibraryPlus\Auth;
namespace ToolkitPlus\Auth;

/**
* Interface StorageInterface
* @package Inhere\LibraryPlus\Auth
* @package ToolkitPlus\Auth
*/
interface StorageInterface
{
Expand Down
4 changes: 2 additions & 2 deletions libs/Auth/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 21:57
*/

namespace Inhere\LibraryPlus\Auth;
namespace ToolkitPlus\Auth;

use Inhere\Exceptions\InvalidArgumentException;
use Inhere\Exceptions\InvalidConfigException;
Expand All @@ -16,7 +16,7 @@

/**
* Class User
* @package Inhere\LibraryPlus\Auth
* @package ToolkitPlus\Auth
* @property int id
*/
class User extends SimpleCollection
Expand Down
4 changes: 2 additions & 2 deletions libs/Env/AbstractEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* File: AbstructEnv.php
*/

namespace Inhere\LibraryPlus\Env;
namespace ToolkitPlus\Env;

use Inhere\Library\Collections\SimpleCollection;

/**
* Class AbstractEnv
* @package Inhere\LibraryPlus\Env
* @package ToolkitPlus\Env
*/
abstract class AbstractEnv extends SimpleCollection
{
Expand Down
4 changes: 2 additions & 2 deletions libs/Env/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* File: Client.php
*/

namespace Inhere\LibraryPlus\Env;
namespace ToolkitPlus\Env;


/**
* 客户端信息(e.g. 浏览器)
* Class Client
* @package Inhere\LibraryPlus\Env
* @package ToolkitPlus\Env
* @property string uri
* @property string method
* @property string conn
Expand Down
4 changes: 2 additions & 2 deletions libs/Env/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* File: Environment.php
*/

namespace Inhere\LibraryPlus\Env;
namespace ToolkitPlus\Env;

use Inhere\Library\Collections\SimpleCollection;

/**
* 环境信息
* Class Environment
* @package Inhere\LibraryPlus\Env
* @package ToolkitPlus\Env
*/
class Environment extends SimpleCollection
{
Expand Down
4 changes: 2 additions & 2 deletions libs/Env/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* File: Server.php
*/

namespace Inhere\LibraryPlus\Env;
namespace ToolkitPlus\Env;

use Inhere\Library\Helpers\PhpHelper;

/**
* 服务端信息 Server
* Class Server
* @package Inhere\LibraryPlus\Env
* @package ToolkitPlus\Env
* @property string path
* @property string protocol
* @property string signature
Expand Down
4 changes: 2 additions & 2 deletions libs/Files/Backup.php → libs/File/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
* Time: 10:33
*/

namespace Inhere\LibraryPlus\Files;
namespace ToolkitPlus\File;

use Inhere\Library\Files\FileFinder;

/**
* Class Backup
* @package Inhere\LibraryPlus\Files
* @package ToolkitPlus\File
* ```
* $bk = new Backup;
* ```
Expand Down
4 changes: 2 additions & 2 deletions libs/Files/Captcha.php → libs/File/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* 2. Captcha::make(...)->show()
*/

namespace Inhere\LibraryPlus\Files;
namespace ToolkitPlus\File;

use Inhere\Exceptions\ExtensionMissException;
use Inhere\Exceptions\NotFoundException;

/**
* Class Captcha
* @package Inhere\LibraryPlus\Files
* @package ToolkitPlus\File
*/
class Captcha
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* Time: 下午6:23
*/

namespace Inhere\LibraryPlus\Files\Compress;
namespace ToolkitPlus\File\Compress;

use Inhere\Exceptions\InvalidArgumentException;
use Inhere\Library\Files\FileFinder;
use Inhere\Library\StdObject;

/**
* Class AbstractCompressor
* @package Inhere\LibraryPlus\Files\Compress
* @package ToolkitPlus\File\Compress
*/
abstract class AbstractCompressor extends StdObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 上午1:45
*/

namespace Inhere\LibraryPlus\Files\Compress;
namespace ToolkitPlus\File\Compress;

use Inhere\Exceptions\FileNotFoundException;
use Inhere\Exceptions\FileSystemException;
Expand All @@ -17,7 +17,7 @@

/**
* Class GzipCompressor
* @package Inhere\LibraryPlus\Files\Compress
* @package ToolkitPlus\File\Compress
*/
class GzipCompressor extends AbstractCompressor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 上午2:14
*/

namespace Inhere\LibraryPlus\Files\Compress;
namespace ToolkitPlus\File\Compress;

/**
* Class PharCompressor
* @package Inhere\LibraryPlus\Files\Compress
* @package ToolkitPlus\File\Compress
*/
class PharCompressor extends AbstractCompressor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 上午2:14
*/

namespace Inhere\LibraryPlus\Files\Compress;
namespace ToolkitPlus\File\Compress;

/**
* Class TgzCompressor
* @package Inhere\LibraryPlus\Files\Compress
* @package ToolkitPlus\File\Compress
*/
class TgzCompressor extends GzipCompressor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 下午6:23
*/

namespace Inhere\LibraryPlus\Files\Compress;
namespace ToolkitPlus\File\Compress;

use Inhere\Exceptions\FileSystemException;
use Inhere\Exceptions\NotFoundException;
Expand All @@ -15,7 +15,7 @@

/**
* Class ZipCompressor
* @package Inhere\LibraryPlus\Files\Compress
* @package ToolkitPlus\File\Compress
*/
class ZipCompressor extends AbstractCompressor
{
Expand Down
4 changes: 2 additions & 2 deletions libs/Files/Download.php → libs/File/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* $down = new Download();
*/

namespace Inhere\LibraryPlus\Files;
namespace ToolkitPlus\File;

/**
* Class Download
* @package Inhere\LibraryPlus\Files
* @package ToolkitPlus\File
*/
class Download
{
Expand Down
14 changes: 14 additions & 0 deletions libs/File/Drawing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* 画图
*/

namespace ToolkitPlus\File;

/**
* Class Drawing
* @package ToolkitPlus\File
*/
class Drawing
{
}
Loading

0 comments on commit c6b16b3

Please sign in to comment.