forked from janeklb/JSONCharInputReader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PSR-0 compliance and created a composor.json. Will extend funct…
…ionality later
- Loading branch information
1 parent
a65fb65
commit 93551f5
Showing
8 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
composer.lock | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
tdt/json | ||
======== | ||
|
||
JSONCharInputReader processes JSON data streams character-by-character | ||
|
||
The data stream *must* be in the form of a JSON array (atm). | ||
ie. [1, 2, [3, 4], {"five": "six"}, ... | ||
|
||
|
||
examples | ||
======== | ||
|
||
To run the examples/example.php execute the following in your terminal: | ||
```bash | ||
$ cd examples | ||
$ cat | php example.php | ||
``` | ||
|
||
Testing //todo | ||
======= | ||
|
||
We have a few tests in the tests directory. You can run them as follows if you have phpunit installed: | ||
|
||
```bash | ||
$ phpunit tests/ | ||
``` | ||
|
||
Or you can watch our travis-ci.org page when you have pushed to this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "tdt/json", | ||
"description": "Reads a json stream memory efficiently.", | ||
"keywords": ["json", "stream", "chunk", "buffer"], | ||
"homepage": "http://thedatatank.com", | ||
"type": "library", | ||
"license": "AGPLv3", | ||
"suggest": { | ||
}, | ||
"require": { | ||
}, | ||
"minimum-stability" : "dev", | ||
"autoload": { | ||
"psr-0": { | ||
"tdt\\json\\": "src/" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
* @author janeklb | ||
* | ||
*/ | ||
namespace tdt\json; | ||
|
||
interface JSONChunkProcessor | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters