Skip to content

Commit

Permalink
Add other php versions to travis (#4)
Browse files Browse the repository at this point in the history
* * added other versions of php to travis
* update readme to match code

* try this for travis

* apparently travis doesn't have php 5.3?
  • Loading branch information
SeanJA authored Aug 16, 2017
1 parent ca87a49 commit f33bc63
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 352 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Requirements
==

* PHP 5.5 +
* PHP 5.3 +

TODO
==
Expand All @@ -21,19 +21,19 @@ Examples

$q->table('table')
->begin_and()
->and_where('col_1', 1)
->or_where('col_2', 2)
->end_and()
->or_where('col_3', 3, '!=');
->andWhere('col_1', 1)
->orWhere('col_2', 2)
->endAnd()
->orWhere('col_3', 3, '!=');
//=>SELECT * FROM table WHERE ( col_1 = '1' OR col_2 = '2' ) or col_3 != '3'

$q->table('table')
->begin_and()
->begin_and()
->and_where('col_1', 1)
->or_where('col_2', 2)
->end_and()
->end_and()
->or_where('col_3', 3, '!=');
->beginAnd()
->beginAnd()
->andWhere('col_1', 1)
->orWhere('col_2', 2)
->endAnd()
->endAnd()
->orWhere('col_3', 3, '!=');

//=>SELECT * FROM table WHERE ( ( col_1 = '1' OR col_2 = '2' ) ) OR col_3 != '3'
98 changes: 49 additions & 49 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"name": "seanja/query-builder",
"description": "Query building classes",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^3.0",
"phpmd/phpmd": "^2.6",
"sebastian/phpcpd": "^3.0"
},
"license": "MIT / GPL",
"authors": [
{
"name": "SeanJA",
"email": "[email protected]"
}
],
"autoload" : {
"psr-4" : {
"SeanJA\\" : "source"
}
},
"autoload-dev" : {
"psr-4" : {
"Tests\\SeanJA\\" : "tests\\source"
}
},
"require": {},
"scripts" : {
"phpcpd": [
"vendor/bin/phpcpd --min-tokens 10 ./source"
],
"phpcs": [
"vendor/bin/phpcs --standard=PSR2 --extensions=php ./source"
],
"phpunit": [
"vendor/bin/phpunit --configuration ./phpunit.xml"
],
"phpmd": [
"vendor/bin/phpmd ./source text codesize,naming,unusedcode"
],
"coverage" : [
"php vendor/bin/phpunit --coverage-clover clover.xml"
],
"build": [
"vendor/bin/phpunit",
"vendor/bin/phpcpd --min-tokens 10 ./source",
"vendor/bin/phpcs --standard=PSR2 --extensions=php ./source",
"vendor/bin/phpunit --coverage-text"
]
"name": "seanja/query-builder",
"description": "Query building classes",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^4.7",
"squizlabs/php_codesniffer": "^2.9",
"phpmd/phpmd": "^2.6",
"sebastian/phpcpd": "^2.0"
},
"license": "MIT / GPL",
"authors": [
{
"name": "SeanJA",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"SeanJA\\": "source"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\SeanJA\\": "tests\\source"
}
},
"require": {},
"scripts": {
"phpcpd": [
"vendor/bin/phpcpd --min-tokens 10 ./source"
],
"phpcs": [
"vendor/bin/phpcs --standard=PSR2 --extensions=php ./source"
],
"phpunit": [
"vendor/bin/phpunit --configuration ./phpunit.xml"
],
"phpmd": [
"vendor/bin/phpmd ./source text codesize,naming,unusedcode"
],
"coverage": [
"php vendor/bin/phpunit --coverage-clover clover.xml"
],
"build": [
"vendor/bin/phpunit",
"vendor/bin/phpcpd --min-tokens 10 ./source",
"vendor/bin/phpcs --standard=PSR2 --extensions=php ./source",
"vendor/bin/phpunit --coverage-text"
]
}
}
Loading

0 comments on commit f33bc63

Please sign in to comment.