Skip to content

Commit 45069d0

Browse files
committed
Initial release
1 parent 9ff1d46 commit 45069d0

File tree

9 files changed

+3346
-0
lines changed

9 files changed

+3346
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
build/
3+
vendor/
4+
composer.lock

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Nil Portugués Calderó
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

composer.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name":"nilportugues/sql-query-formatter",
3+
"description":"A very lightweight PHP class that reformats unreadable and computer-generated SQL query statements to human-friendly, readable text.",
4+
"keywords": [ "sql", "mysql", "query", "formatter", "format", "parser", "tokenizer", "reformat", "sql server" ],
5+
"type":"library",
6+
"license":"MIT",
7+
"homepage":"http://nilportugues.com",
8+
"authors":
9+
[
10+
{
11+
"name":"Nil Portugués Calderó",
12+
"email":"contact@nilportugues.com",
13+
"homepage":"http://nilportugues.com",
14+
"role":"Lead Developer"
15+
}
16+
],
17+
"autoload":{
18+
"psr-0":{
19+
"NilPortugues\\SqlQueryFormatter":"src/"
20+
}
21+
},
22+
"require":
23+
{
24+
"php": ">=5.4"
25+
},
26+
"require-dev":
27+
{
28+
"phpunit/phpunit": "4.2.*@dev",
29+
"phpunit/phpunit-mock-objects": "2.2.*@dev",
30+
"phpunit/php-code-coverage": "2.0.x-dev",
31+
"sebastian/comparator": "dev-master",
32+
"sebastian/finder-facade": "dev-master",
33+
"theseer/fdomdocument": "dev-master",
34+
"fabpot/php-cs-fixer": "dev-master",
35+
"pdepend/pdepend": "2.*",
36+
"phpmd/phpmd": "dev-master",
37+
"goatherd/phpcs_installer": "2.*@dev",
38+
"squizlabs/php_codesniffer": "2.*@dev"
39+
},
40+
"config":
41+
{
42+
"bin-dir": "bin"
43+
},
44+
"minimum-stability": "stable"
45+
}

phpunit.xml.dist

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit cacheTokens="false"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
stopOnError="false"
11+
stopOnFailure="false"
12+
stopOnIncomplete="false"
13+
stopOnSkipped="false"
14+
syntaxCheck="true"
15+
bootstrap="vendor/autoload.php"
16+
strict="true"
17+
verbose="true">
18+
19+
<php>
20+
<ini name="intl.default_locale" value="en_US.UTF-8" />
21+
<ini name="intl.error_level" value="0" />
22+
<ini name="memory_limit" value="-1" />
23+
<ini name="max_execution_time" value="-1"/>
24+
<ini name="date.timezone" value="Europe/Madrid" />
25+
<ini name="error_reporting" value="E_ALL" />
26+
</php>
27+
28+
29+
<testsuites>
30+
<testsuite name="Test Suite">
31+
<directory>./src/Tests</directory>
32+
</testsuite>
33+
</testsuites>
34+
35+
<filter>
36+
<whitelist>
37+
<directory>./</directory>
38+
<exclude>
39+
<directory>./vendor/</directory>
40+
</exclude>
41+
</whitelist>
42+
</filter>
43+
44+
<logging>
45+
<log type="junit" target="build/logs/junit.xml"/>
46+
<log type="coverage-clover" target="build/logs/clover.xml"/>
47+
<log type="coverage-html" target="build/coverage"/>
48+
</logging>
49+
</phpunit>

0 commit comments

Comments
 (0)