Skip to content

Commit

Permalink
Added composer compatibility #2
Browse files Browse the repository at this point in the history
  • Loading branch information
borsodigerii committed Oct 16, 2023
1 parent 00584ce commit 18b4f05
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*.xml
/*.log
/index.php
/sapho-chunking.php
/sapho-chunking.php
/Chunker-DEV.php
/vendor/
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "borsodigerii/php-xml-chunker",
"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.",
"keywords": [
"fast", "lightweight", "php", "php7", "xml", "split", "xml-parsing", "xml-parser", "charset", "splitter", "chunking", "xml-parser-library", "php8", "charset-normalizer", "xml-parser-lib"
],
"type": "library",
"license": "MIT",
"homepage": "https://github.com/borsodigerii/php-xml-chunker",
"readme": "https://github.com/borsodigerii/php-xml-chunker/blob/main/README.md",
"authors": [{
"name": "Borsodi Gergő",
"email": "borsodi.geri30@gmail.com",
"homepage": "https://borsodigerii.hu"
}],
"require": {
"php": ">=7.4.0"
},
"require-dev": {},
"support": {
"issues": "https://github.com/borsodigerii/php-xml-chunker/issues",
"source": "https://github.com/borsodigerii/php-xml-chunker"
},
"autoload": {
"psr-0": {
"Chunker": "src/"
}
},
"autoload-dev": {}
}
6 changes: 5 additions & 1 deletion Chunker.php → src/Chunker/Chunker.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

namespace Chunker;
use \Datetime;
use \XMLParser;

if(!class_exists("Chunker")){

/**
Expand All @@ -8,7 +12,7 @@
* MINIMUM PHP VERSION: 7.4
*
* @author Borsodi Gergő
* @version 1.0
* @version 2.0
* @link https://github.com/borsodigerii/php-xml-chunker
*
*/
Expand Down

0 comments on commit 18b4f05

Please sign in to comment.