Skip to content

Commit 13d1559

Browse files
author
Nuno
committed
package renamed
1 parent 7ba7094 commit 13d1559

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# jupitern/FileParser
2+
# jupitern/file-parser
33
#### PHP File Parser.
44

55
read, filter, parse and format {csv, tsv, dsv, variable-length-delimited} and other txt files
@@ -10,11 +10,11 @@ PHP 5.4 or higher.
1010

1111
## Installation
1212

13-
Include jupitern/FileParser in your project, by adding it to your composer.json file.
13+
Include jupitern/file-parser in your project, by adding it to your composer.json file.
1414
```javascript
1515
{
1616
"require": {
17-
"jupitern/FileParser": "1.*"
17+
"jupitern/file-parser": "0.1.*"
1818
}
1919
}
2020
```
@@ -37,7 +37,7 @@ lets parse the file with:
3737
- group by type
3838

3939
// read a file to array
40-
$objectsArr = \Lib\Parser\Parser::instance()
40+
$objectsArr = \Jupitern\FileParser::instance()
4141
->setFile("csv.txt", ',')
4242
->setEncoding('ISO-8859-1', 'UTF-8')
4343
->toObject(['animal', 'type', 'number'])
@@ -106,7 +106,7 @@ in the same file lets parse with:
106106
- remove animals with count 0
107107
- group by type
108108

109-
$objectsArr = \Lib\Parser\Parser::instance()
109+
$objectsArr = \Jupitern\FileParser::instance()
110110
->setFile("csv.txt", ',')
111111
->setEncoding('ISO-8859-1', 'UTF-8')
112112
->filter(function ($line) {
@@ -177,7 +177,7 @@ lets parse the file doing:
177177
- format person name capitalize first letters
178178
- group by wage bellow or above 1000
179179

180-
$objectsArr = \Lib\Parser\Parser::instance()
180+
$objectsArr = \Jupitern\FileParser::instance()
181181
->setFile("test.txt")
182182
->setEncoding('ISO-8859-1', 'UTF-8')
183183
->each(function ($line){
@@ -252,6 +252,6 @@ Array
252252

253253
## License
254254

255-
jupitern/FileParser is release under the MIT license.
255+
jupitern/file-parser is release under the MIT license.
256256

257257
You are free to use, modify and distribute this software

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name" : "jupitern/FileParser",
2+
"name" : "jupitern/file-parser",
33
"description": "read, filter, parse and format {csv, tsv, dsv, variable-length-delimited} and other txt files",
44
"keywords" : ["file parser", "csv", "dsv", "tsv", "variable-length-delimited"],
5-
"homepage" : "https://github.com/jupitern/FileParser",
5+
"homepage" : "https://github.com/jupitern/file-parser",
66
"license" : "MIT",
77
"authors" : [
88
{
@@ -12,8 +12,8 @@
1212
}
1313
],
1414
"support": {
15-
"source": "https://github.com/jupitern/FileParser",
16-
"issues": "https://github.com/jupitern/FileParser/issues"
15+
"source": "https://github.com/jupitern/file-parser",
16+
"issues": "https://github.com/jupitern/file-parser/issues"
1717
},
1818
"require" :{
1919
"php":">=5.4"

0 commit comments

Comments
 (0)