Skip to content

Commit 88e21ab

Browse files
committed
First version
1 parent e368364 commit 88e21ab

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "phpzm/phpee",
3+
"version": "1.0.0",
34
"description": "Library with same handlers to make php easier",
45
"type": "library",
56
"license": "MIT",

src/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ abstract class File extends Proxy
1717
protected static $map = [
1818
/** @link http://php.net/manual/en/function.file-put-contents.php */
1919
'write' => [
20-
'name' => 'file_put_contens',
20+
'name' => 'file_put_contents',
2121
],
2222
/** @link http://php.net/manual/en/function.file-get-contents.php */
2323
'read' => [
24-
'name' => 'file_get_contens',
24+
'name' => 'file_get_contents',
2525
],
2626
/** @link http://php.net/manual/en/function.file-exists.php */
2727
'exists' => [

src/JSON.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Php;
4+
5+
/**
6+
* Class Base64
7+
*
8+
* @method static string encode(mixed $value, int $options = 0, int $depth = 512)
9+
* @method static string decode(string $json, bool $assoc = false, int $depth = 512, int $options = 0)
10+
*/
11+
abstract class JSON extends Proxy
12+
{
13+
/**
14+
* @var array
15+
*/
16+
protected static $map = [
17+
'encode' => [
18+
'name' => 'json_encode',
19+
],
20+
'decode' => [
21+
'name' => 'json_decode',
22+
],
23+
];
24+
}

0 commit comments

Comments
 (0)