Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileka committed Jul 4, 2015
0 parents commit 2cf8dac
Show file tree
Hide file tree
Showing 17 changed files with 705 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/build
/vendor
/.idea
composer.phar
composer.lock
.DS_Store
.coveralls.yml
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: php

php:
- 5.4
- 5.5
- 5.6

before_script:
- curl -s http://getcomposer.org/installer | php
- composer install --prefer-source --no-interaction

script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml

after_script:
- php vendor/bin/coveralls
12 changes: 12 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

require 'vendor/autoload.php';
require 'vendor/phpunit/phpunit/src/Framework/Assert/Functions.php';
require 'tests/TestCase.php';

spl_autoload_register(function ($class) {
$file = __DIR__.'/tests/'. str_replace('\\', '/', $class) . '.php';
if (file_exists($file)) {
require_once($file);
}
});
31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "mobileka/scope-applicator-laravel",
"description": "Scope Applicator bindings for Laravel framework.",
"keywords": ["scopes", "filters", "filtering", "laravel"],
"license": "MIT",
"authors": [
{
"name": "Armen Markossyan",
"email": "a.a.markossyan@gmail.com",
"homepage": "http://blog.armen.im"
}
],
"require": {
"php": ">=5.4.0",
"mobileka/scope-applicator": "1.0.*",
"illuminate/log": ">=4.0.1 <5.1.0",
"illuminate/http": ">=4.0.1 <5.1.0",
"illuminate/database": ">=4.0.1 <5.1.0",
"illuminate/support": ">=4.0.1 <5.1.0"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"mockery/mockery": "0.9.3",
"satooshi/php-coveralls": "0.6.1"
},
"autoload": {
"psr-4": {
"Mobileka\\ScopeApplicator\\": "src/Mobileka/ScopeApplicator"
}
}
}
21 changes: 21 additions & 0 deletions license
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) <Armen Markossyan>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
30 changes: 30 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<filter>
<whitelist>
<directory>src/Mobileka/ScopeApplicator</directory>
<exclude>
<file>src/Mobileka/ScopeApplicator/ScopeApplicatorServiceProvider.php</file>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 2cf8dac

Please sign in to comment.