Skip to content

Commit 18b4f05

Browse files
committed
Added composer compatibility #2
1 parent 00584ce commit 18b4f05

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*.xml
22
/*.log
33
/index.php
4-
/sapho-chunking.php
4+
/sapho-chunking.php
5+
/Chunker-DEV.php
6+
/vendor/

composer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "borsodigerii/php-xml-chunker",
3+
"description": "A lightweight, fast, and optimized XML file splitter with build in tag data validation, written with the XMLParser library. The main goal of this is to split an XML file into multiple small chunks (hence the name), then save it into multiple different little XML files.",
4+
"keywords": [
5+
"fast", "lightweight", "php", "php7", "xml", "split", "xml-parsing", "xml-parser", "charset", "splitter", "chunking", "xml-parser-library", "php8", "charset-normalizer", "xml-parser-lib"
6+
],
7+
"type": "library",
8+
"license": "MIT",
9+
"homepage": "https://github.com/borsodigerii/php-xml-chunker",
10+
"readme": "https://github.com/borsodigerii/php-xml-chunker/blob/main/README.md",
11+
"authors": [{
12+
"name": "Borsodi Gergő",
13+
"email": "[email protected]",
14+
"homepage": "https://borsodigerii.hu"
15+
}],
16+
"require": {
17+
"php": ">=7.4.0"
18+
},
19+
"require-dev": {},
20+
"support": {
21+
"issues": "https://github.com/borsodigerii/php-xml-chunker/issues",
22+
"source": "https://github.com/borsodigerii/php-xml-chunker"
23+
},
24+
"autoload": {
25+
"psr-0": {
26+
"Chunker": "src/"
27+
}
28+
},
29+
"autoload-dev": {}
30+
}

Chunker.php renamed to src/Chunker/Chunker.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
namespace Chunker;
4+
use \Datetime;
5+
use \XMLParser;
6+
37
if(!class_exists("Chunker")){
48

59
/**
@@ -8,7 +12,7 @@
812
* MINIMUM PHP VERSION: 7.4
913
*
1014
* @author Borsodi Gergő
11-
* @version 1.0
15+
* @version 2.0
1216
* @link https://github.com/borsodigerii/php-xml-chunker
1317
*
1418
*/

0 commit comments

Comments
 (0)