Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 1c1befd

Browse files
committed
update namespace
1 parent f1411c3 commit 1c1befd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+145
-145
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
### tool library list
44

5-
- `inhere\library\collections` 数据收集器
6-
- `inhere\library\console` 控制台的一些简单交互
7-
- `inhere\library\di` 依赖注入容器,提供服务管理
8-
- `inhere\library\env` 环境信息收集, `Server`: 服务端信息. `Client`: 客户端信息
9-
- `inhere\library\files` 文件系统操作(文件(夹)读取,检查,创建);文件上传/下载,图片处理(缩略图/水印),图片验证码生成
10-
- `inhere\library\helpers` 辅助类库(`string array object date url curl php`)
11-
- `inhere\library\language` 语言包处理类
5+
- `inhere\librarys\collections` 数据收集器
6+
- `inhere\librarys\console` 控制台的一些简单交互
7+
- `inhere\librarys\di` 依赖注入容器,提供服务管理
8+
- `inhere\librarys\env` 环境信息收集, `Server`: 服务端信息. `Client`: 客户端信息
9+
- `inhere\librarys\files` 文件系统操作(文件(夹)读取,检查,创建);文件上传/下载,图片处理(缩略图/水印),图片验证码生成
10+
- `inhere\librarys\helpers` 辅助类库(`string array object date url curl php`)
11+
- `inhere\librarys\language` 语言包处理类
1212
- `functions.php` 一些有用的函数
1313

1414
### 收集的一些库(推荐使用)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"autoload": {
2121
"psr-4": {
22-
"inhere\\library\\" : "src/"
22+
"inhere\\librarys\\" : "src/"
2323
},
2424
"files" : [
2525
"src/functions.php",

doc/document.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# php-librarys
22

33

4-
## `inhere\library\collections`
4+
## `inhere\librarys\collections`
55

66
数据收集器
77

8-
## `inhere\library\console`
8+
## `inhere\librarys\console`
99

1010
控制台的一些简单交互
1111

12-
## `inhere\library\di`
12+
## `inhere\librarys\di`
1313

1414
依赖注入容器,提供服务管理
1515

16-
## `inhere\library\env`
16+
## `inhere\librarys\env`
1717

1818
环境信息收集, `Server`: 服务端信息. `Client`: 客户端信息
1919

20-
## `inhere\library\files`
20+
## `inhere\librarys\files`
2121

2222
文件系统操作(文件(夹)读取,检查,创建);文件上传/下载,图片处理(缩略图/水印),图片验证码生成
2323

24-
## `inhere\library\helpers`
24+
## `inhere\librarys\helpers`
2525

2626
辅助类库(`string array object date url php`)
2727

28-
## `inhere\library\language`
28+
## `inhere\librarys\language`
2929

3030
语言包处理类
3131

doc/extend.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
```php
66

7-
use inhere\library\collections\SimpleCollection;
7+
use inhere\librarys\collections\SimpleCollection;
88

99
/**
1010
* Class BaseModel

src/StdBase.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* Time: 10:35
77
*/
88

9-
namespace inhere\library;
9+
namespace inhere\librarys;
1010

11-
use inhere\library\exceptions\SetPropertyException;
12-
use inhere\library\exceptions\GetPropertyException;
13-
use inhere\library\exceptions\NotFoundException;
14-
use inhere\library\exceptions\UnknownCalledException;
11+
use inhere\librarys\exceptions\SetPropertyException;
12+
use inhere\librarys\exceptions\GetPropertyException;
13+
use inhere\librarys\exceptions\NotFoundException;
14+
use inhere\librarys\exceptions\UnknownCalledException;
1515

1616
abstract class StdBase
1717
{

src/auth/User.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* Time: 21:57
77
*/
88

9-
namespace inhere\library\auth;
9+
namespace inhere\librarys\auth;
1010

11-
use inhere\library\interfaces\CollectionInterface;
12-
use inhere\library\collections\SimpleCollection;
11+
use inhere\librarys\interfaces\CollectionInterface;
12+
use inhere\librarys\collections\SimpleCollection;
1313

1414
/**
1515
* Class User
16-
* @package inhere\library\auth
16+
* @package inhere\librarys\auth
1717
*
1818
* @property int id
1919
*/

src/collections/ActiveData.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* File: ActiveData.php
1212
*/
1313

14-
namespace inhere\library\collections;
14+
namespace inhere\librarys\collections;
1515

1616
/**
1717
* Class ActiveData
18-
* @package inhere\library\collections
18+
* @package inhere\librarys\collections
1919
*/
2020
class ActiveData implements \ArrayAccess, \IteratorAggregate
2121
{

src/collections/DataCollector.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
* @referee windwalker-registry {@link https://github.com/ventoviro/windwalker-registry}
44
*/
55

6-
namespace inhere\library\collections;
6+
namespace inhere\librarys\collections;
77

88
use RuntimeException;
9-
use inhere\library\exceptions\DataParseException;
9+
use inhere\librarys\exceptions\DataParseException;
1010

1111
/**
1212
* Class DataCollector - 数据收集器 (数据存储器 - DataStorage)
13-
* @package inhere\library\collections
13+
* @package inhere\librarys\collections
1414
*
1515
* 支持 链式的子节点 设置 和 值获取
1616
* e.g:

src/collections/FixedData.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
* 仅允许通过实例化时 或 调用load() 载入数据
1111
* File: FixedData.php StrictData.php
1212
*/
13-
namespace inhere\library\collections;
14-
use inhere\library\exceptions\UnknownCalledException;
13+
namespace inhere\librarys\collections;
14+
use inhere\librarys\exceptions\UnknownCalledException;
1515

1616
/**
1717
* Class FixedData
18-
* @package inhere\library\collections
18+
* @package inhere\librarys\collections
1919
*/
2020
class FixedData extends ActiveData
2121
{

src/collections/SimpleCollection.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace inhere\library\collections;
3+
namespace inhere\librarys\collections;
44

55
use ArrayIterator;
6-
use inhere\library\interfaces\CollectionInterface;
6+
use inhere\librarys\interfaces\CollectionInterface;
77

88
/**
99
* Collection
1010
* This class provides a common interface used by many other
11-
* classes in a inhere\library application that manage "collections"
11+
* classes in a inhere\librarys application that manage "collections"
1212
* of data that must be inspected and/or manipulated
1313
*/
1414
class SimpleCollection implements CollectionInterface

src/console/ColorStyle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @todo unused
77
*/
88

9-
namespace inhere\library\console;
9+
namespace inhere\librarys\console;
1010

1111
/**
1212
*@link https://github.com/ventoviro/windwalker-IO

src/console/Colors.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* file: Color.php
99
*/
1010

11-
namespace inhere\library\console;
11+
namespace inhere\librarys\console;
1212

13-
use inhere\library\StdBase;
13+
use inhere\librarys\StdBase;
1414

1515
/**
1616
* Class Colors
17-
* @package inhere\library\console
17+
* @package inhere\librarys\console
1818
* @link https://github.com/ventoviro/windwalker-IO
1919
*/
2020
class Colors extends StdBase

src/console/Interact.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* file: CliInteract.php
99
*/
1010

11-
namespace inhere\library\console;
11+
namespace inhere\librarys\console;
1212

1313
/**
1414
* Class Interact
15-
* @package inhere\library\console
15+
* @package inhere\librarys\console
1616
*/
1717
class Interact
1818
{

src/console/Output.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* Time: 10:22
77
*/
88

9-
namespace inhere\library\console;
9+
namespace inhere\librarys\console;
1010

1111

12-
use inhere\library\StdBase;
12+
use inhere\librarys\StdBase;
1313

1414
/**
1515
* Class Output
16-
* @package inhere\library\console
16+
* @package inhere\librarys\console
1717
*/
1818
class Output extends StdBase
1919
{

src/di/Container.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* File: Container.php
1111
*/
1212

13-
namespace inhere\library\di;
13+
namespace inhere\librarys\di;
1414

1515
class Container implements InterfaceContainer, \ArrayAccess, \IteratorAggregate
1616
{

src/di/ContainerManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* ContainerManager.php
77
* Date : 2014-7-10
88
*/
9-
namespace inhere\library\di;
9+
namespace inhere\librarys\di;
1010

1111

1212
abstract class ContainerManager

src/di/InterfaceContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Date : 2015-1-10
55
* InterfaceContainer.php
66
*/
7-
namespace inhere\library\di;
7+
namespace inhere\librarys\di;
88

99
interface InterfaceContainer
1010
{

src/di/InterfaceServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use : InterfaceServiceProvider.php
66
* Date : 2014-7-10
77
*/
8-
namespace inhere\library\di;
8+
namespace inhere\librarys\di;
99

1010
interface InterfaceServiceProvider
1111
{

src/di/Service.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Service.php
99
*/
1010

11-
namespace inhere\library\di;
11+
namespace inhere\librarys\di;
1212

1313
class Service
1414
{

src/env/AbstractEnv.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* File: AbstructEnv.php
88
*/
99

10-
namespace inhere\library\env;
10+
namespace inhere\librarys\env;
1111

12-
use inhere\library\collections\SimpleCollection;
12+
use inhere\librarys\collections\SimpleCollection;
1313

1414
/**
1515
* Class AbstractEnv
16-
* @package inhere\library\env
16+
* @package inhere\librarys\env
1717
*/
1818
abstract class AbstractEnv extends SimpleCollection
1919
{

src/env/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* File: Client.php
88
*/
99

10-
namespace inhere\library\env;
10+
namespace inhere\librarys\env;
1111

1212

1313
/**
1414
* 客户端信息(e.g. 浏览器)
1515
* Class Client
16-
* @package inhere\library\env
16+
* @package inhere\librarys\env
1717
*
1818
* @property string uri
1919
* @property string method

src/env/Environment.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* File: Environment.php
88
*/
99

10-
namespace inhere\library\env;
10+
namespace inhere\librarys\env;
1111

12-
use inhere\library\StdBase;
12+
use inhere\librarys\StdBase;
1313

1414
class Environment extends StdBase
1515
{

src/env/Server.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* File: Server.php
88
*/
99

10-
namespace inhere\library\env;
10+
namespace inhere\librarys\env;
1111

12-
use inhere\library\helpers\PhpHelper;
12+
use inhere\librarys\helpers\PhpHelper;
1313

1414
/**
1515
* 服务端信息 Server
1616
* Class Server
17-
* @package inhere\library\env
17+
* @package inhere\librarys\env
1818
*
1919
* @property string path
2020
* @property string protocol

src/files/AbstractFileSystem.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* Uesd: 主要功能是 hi
99
*/
1010

11-
namespace inhere\library\files;
11+
namespace inhere\librarys\files;
1212

13-
use inhere\library\exceptions\NotFoundException;
14-
use inhere\library\helpers\StrHelper;
13+
use inhere\librarys\exceptions\NotFoundException;
14+
use inhere\librarys\helpers\StrHelper;
1515

1616
/**
1717
* Class AbstractFileSystem
18-
* @package inhere\library\files
18+
* @package inhere\librarys\files
1919
*/
2020
abstract class AbstractFileSystem
2121
{

src/files/Captcha.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* use : 1. $captcha = new Captcha(....); $captcha->show()
99
* 2. Captcha::make(...)->show()
1010
*/
11-
namespace inhere\library\files;
11+
namespace inhere\librarys\files;
1212

13-
use inhere\library\exceptions\NotFoundException;
14-
use inhere\library\exceptions\ExtensionMissException;
13+
use inhere\librarys\exceptions\NotFoundException;
14+
use inhere\librarys\exceptions\ExtensionMissException;
1515

1616
/**
1717
* Class Captcha
18-
* @package inhere\library\files
18+
* @package inhere\librarys\files
1919
*/
2020
class Captcha
2121
{

src/files/Directory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
* Uesd: 主要功能是 hi
88
*/
99

10-
namespace inhere\library\files;
10+
namespace inhere\librarys\files;
1111

1212
use DirectoryIterator;
13-
use inhere\library\exceptions\NotFoundException;
13+
use inhere\librarys\exceptions\NotFoundException;
1414

1515
class Directory extends AbstractFileSystem
1616
{

0 commit comments

Comments
 (0)