forked from Soapbox/laravel-formatter
/
Find Results
198 lines (177 loc) · 6.48 KB
/
Find Results
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
Searching 25 files for "SoapBox" (regex)
/Users/yisroelperkel/Repos/laravel-formatter/composer.json:
1 {
2: "name": "soapbox/laravel-formatter",
3 "type": "library",
4 "description": "A formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others.",
5 "keywords": ["laravel", "formatter", "data", "convert", "csv", "xml", "yaml"],
6: "homepage": "http://github.com/SoapBox/laravel-formatter",
7 "license": "MIT",
8 "version": "2.0",
.
10 {
11 "name": "Graham McCarthy",
12: "email": "graham@soapboxhq.com",
13 "homepage": "http://grahammccarthy.com"
14 },
..
27 "autoload": {
28 "psr-0": {
29: "SoapBox\\Formatter": "src/"
30 }
31 },
/Users/yisroelperkel/Repos/laravel-formatter/readme.md:
2 ================
3
4: [![Build Status](https://travis-ci.org/SoapBox/laravel-formatter.svg?branch=master)](https://travis-ci.org/SoapBox/laravel-formatter)
5
6 A formatter package that will help you to easily convert between various formats such as XML, JSON, CSV, etc...
.
15
16 ```bash
17: composer require soapbox/laravel-formatter
18 ```
19
..
23 {
24 "require": {
25: "soapbox/laravel-formatter": "2.x"
26 }
27 }
..
50
51 ```php
52: use SoapBox\Formatter\Formatter;
53 ```
54
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/ArrayHelpers.php:
1: <?php namespace SoapBox\Formatter;
2
3 use Illuminate\Support\Arr;
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Formatter.php:
2
3 use InvalidArgumentException;
4: use SoapBox\Formatter\Parsers\ArrayParser;
5: use SoapBox\Formatter\Parsers\CsvParser;
6: use SoapBox\Formatter\Parsers\JsonParser;
7: use SoapBox\Formatter\Parsers\XmlParser;
8: use SoapBox\Formatter\Parsers\YamlParser;
9
10 class Formatter {
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/FormatterServiceProvider.php:
1: <?php namespace SoapBox\Formatter;
2
3 use Illuminate\Support\ServiceProvider;
.
19 */
20 public function boot() {
21: $this->package('soapbox/laravel-formatter');
22 }
23 /**
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Facades/Formatter.php:
1: <?php namespace SoapBox\Formatter\Facades;
2
3 use Illuminate\Support\Facades\Facade;
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/ArrayParser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 use InvalidArgumentException;
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/CsvParser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 use InvalidArgumentException;
4 use League\Csv\Reader;
5: use SoapBox\Formatter\ArrayHelpers;
6
7 class CsvParser extends Parser {
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/JsonParser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 class JsonParser extends Parser {
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/Parser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 use Spyc;
4 use Illuminate\Support\Str;
5: use SoapBox\Formatter\ArrayHelpers;
6
7 /**
.
125 /**
126 * Ported from laravel-formatter
127: * https://github.com/SoapBox/laravel-formatter
128 *
129 * @author Daniel Berry <daniel@danielberry.me>
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/XmlParser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 class XmlParser extends Parser {
.
7 /**
8 * Ported from laravel-formatter
9: * https://github.com/SoapBox/laravel-formatter
10 *
11 * @author Daniel Berry <daniel@danielberry.me>
/Users/yisroelperkel/Repos/laravel-formatter/src/IzzyP/Formatter/Parsers/YamlParser.php:
1: <?php namespace SoapBox\Formatter\Parsers;
2
3 use InvalidArgumentException;
/Users/yisroelperkel/Repos/laravel-formatter/tests/TestCase.php:
1: <?php namespace SoapBox\Formatter\Test;
2
3 abstract class TestCase extends \PHPUnit_Framework_TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/FormatterTest.php:
1: <?php namespace SoapBox\Formatter\Test;
2
3: use SoapBox\Formatter\Formatter;
4
5 class FormatterTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/ParserTest.php:
1: <?php namespace SoapBox\Formatter\Test;
2
3: use SoapBox\Formatter\Formatter;
4
5 class ParserTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/Parsers/ArrayParserTest.php:
1: <?php namespace SoapBox\Formatter\Test\Parsers;
2
3 use stdClass;
4: use SoapBox\Formatter\Test\TestCase;
5: use SoapBox\Formatter\Parsers\Parser;
6: use SoapBox\Formatter\Parsers\ArrayParser;
7
8 class ArrayParserTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/Parsers/CsvParserTest.php:
1: <?php namespace SoapBox\Formatter\Test\Parsers;
2
3: use SoapBox\Formatter\Test\TestCase;
4: use SoapBox\Formatter\Parsers\Parser;
5: use SoapBox\Formatter\Parsers\CsvParser;
6
7 class CsvParserTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/Parsers/JsonParserTest.php:
1: <?php namespace SoapBox\Formatter\Test\Parsers;
2
3: use SoapBox\Formatter\Test\TestCase;
4: use SoapBox\Formatter\Parsers\Parser;
5: use SoapBox\Formatter\Parsers\JsonParser;
6
7 class JsonParserTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/Parsers/XmlParserTest.php:
1: <?php namespace SoapBox\Formatter\Test\Parsers;
2
3: use SoapBox\Formatter\Test\TestCase;
4: use SoapBox\Formatter\Parsers\Parser;
5: use SoapBox\Formatter\Parsers\XmlParser;
6
7 class XmlParserTest extends TestCase {
/Users/yisroelperkel/Repos/laravel-formatter/tests/unit/Parsers/YamlParserTest.php:
1: <?php namespace SoapBox\Formatter\Test\Parsers;
2
3: use SoapBox\Formatter\Test\TestCase;
4: use SoapBox\Formatter\Parsers\Parser;
5: use SoapBox\Formatter\Parsers\YamlParser;
6: use SoapBox\Formatter\Parsers\XmlParser;
7
8 class YamlParserTest extends TestCase {
54 matches across 20 files