-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 05f5cda
Showing
12 changed files
with
1,930 additions
and
0 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,6 @@ | ||
/.idea/ | ||
/vendor/ | ||
/.temp/ | ||
/ext/ | ||
compile*.log | ||
stubs/streamparser |
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,27 @@ | ||
StreamReader Collection | ||
=============== | ||
|
||
## PHP XML Stream Reader | ||
Reads XML from either a string or a stream, allowing the registration of callbacks when an elemnt is found that matches path. | ||
|
||
## Installation | ||
* [Install Zephir](https://docs.zephir-lang.com/ru/0.10/installation) | ||
* `zephir build` | ||
* Add `extension=streamparser` to your `php.ini` | ||
|
||
Usage Example | ||
------------- | ||
```php | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
(new SixDreams\StreamReader\XmlStreamReader()) | ||
->registerCallback('/root/sport', '/root/sport/groups/group/events/event', function (string $rawXml) { | ||
echo 'XML: ' . $rawXml . "\n"; | ||
}); | ||
``` | ||
|
||
## PHP JSON Stream Reader | ||
|
||
@todo... | ||
|
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,10 @@ | ||
{ | ||
"name": "6dreams/stream-reader", | ||
"license": "proprietary", | ||
"type": "project", | ||
"autoload": { | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "7.2.7" | ||
} | ||
} |
Oops, something went wrong.