Skip to content

Commit 7fa0922

Browse files
committed
Initial release
1 parent 1abf927 commit 7fa0922

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+6393
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
build/
3+
vendor/
4+
composer.lock

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm-nightly
8+
9+
matrix:
10+
allow_failures:
11+
- php: 5.6
12+
- php: hhvm-nightly
13+
14+
before_script:
15+
- composer install
16+
17+
script:
18+
- bin/phpunit --coverage-text

LICENSE.txt

+21
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

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name":"nilportugues/sql-query-builder",
3+
"description":"An elegant lightweight and efficient SQL Query Builder supporting bindings and complicated query generation.",
4+
"keywords": [ "sql", "mysql", "query", "builder", "query builder", "orm"],
5+
"type":"library",
6+
"license":"MIT",
7+
"homepage":"http://nilportugues.com",
8+
"authors":
9+
[
10+
{
11+
"name":"Nil Portugués Calderó",
12+
"email":"[email protected]",
13+
"homepage":"http://nilportugues.com",
14+
"role":"Lead Developer"
15+
}
16+
],
17+
"autoload":{
18+
"psr-0":{
19+
"":"src/"
20+
}
21+
},
22+
"require":
23+
{
24+
"php": ">=5.4",
25+
"nilportugues/sql-query-formatter" : "1.0.0"
26+
},
27+
"require-dev":
28+
{
29+
"phpunit/phpunit": "4.2.*@dev",
30+
"phpunit/phpunit-mock-objects": "2.2.*@dev",
31+
"phpunit/php-code-coverage": "2.0.x-dev",
32+
"sebastian/comparator": "dev-master",
33+
"sebastian/finder-facade": "dev-master",
34+
"theseer/fdomdocument": "dev-master",
35+
"fabpot/php-cs-fixer": "dev-master",
36+
"pdepend/pdepend": "2.*",
37+
"phpmd/phpmd": "dev-master",
38+
"goatherd/phpcs_installer": "2.*@dev",
39+
"squizlabs/php_codesniffer": "2.*@dev"
40+
},
41+
"config":
42+
{
43+
"bin-dir": "bin"
44+
},
45+
"minimum-stability": "stable"
46+
}

phpunit.xml.dist

+49
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Author: Nil Portugués Calderó <[email protected]>
4+
* Date: 6/3/14
5+
* Time: 12:07 AM
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace NilPortugues\SqlQueryBuilder\Builder;
11+
12+
use NilPortugues\SqlQueryBuilder\Manipulation\Query;
13+
14+
/**
15+
* Interface Builder
16+
* @package NilPortugues\SqlQueryBuilder\Builder
17+
*/
18+
interface Builder
19+
{
20+
/**
21+
* @param Query $query
22+
*
23+
* @return mixed
24+
*/
25+
public function write(Query $query);
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Author: Nil Portugués Calderó <[email protected]>
4+
* Date: 6/3/14
5+
* Time: 12:07 AM
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace NilPortugues\SqlQueryBuilder\Builder;
11+
12+
/**
13+
* Class BuilderException
14+
* @package NilPortugues\SqlQueryBuilder\Builder
15+
*/
16+
final class BuilderException extends \Exception
17+
{
18+
19+
}

0 commit comments

Comments
 (0)