Skip to content

Commit 3fb66fe

Browse files
committed
initial laravel package setup
0 parents  commit 3fb66fe

File tree

12 files changed

+103
-0
lines changed

12 files changed

+103
-0
lines changed

.gitignore

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

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm
8+
9+
before_script:
10+
- travis_retry composer self-update
11+
- travis_retry composer install --prefer-source --no-interaction --dev
12+
13+
script: phpunit

composer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "aacotroneo/laravel-saml2",
3+
"description": "A laravel package for saml2 integration as a SP (service provider) based on OneLogin toolkit, which is much lightweight than simplesamlphp",
4+
"authors": [
5+
{
6+
"name": "aacotroneo",
7+
"email": "aacotroneo at gmail dot com"
8+
}
9+
],
10+
"require": {
11+
"php": ">=5.4.0",
12+
"illuminate/support": "4.2.*",
13+
"onelogin/php-saml": "2.3"
14+
},
15+
"autoload": {
16+
"classmap": [
17+
"src/migrations"
18+
],
19+
"psr-0": {
20+
"Aacotroneo\\LaravelSaml2\\": "src/"
21+
}
22+
},
23+
"minimum-stability": "stable"
24+
}

phpunit.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Package Test Suite">
15+
<directory suffix=".php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
</phpunit>

public/.gitkeep

Whitespace-only changes.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php namespace Aacotroneo\LaravelSaml2;
2+
3+
use Illuminate\Support\ServiceProvider;
4+
5+
class LaravelSaml2ServiceProvider extends ServiceProvider {
6+
7+
/**
8+
* Indicates if loading of the provider is deferred.
9+
*
10+
* @var bool
11+
*/
12+
protected $defer = false;
13+
14+
/**
15+
* Bootstrap the application events.
16+
*
17+
* @return void
18+
*/
19+
public function boot()
20+
{
21+
$this->package('aacotroneo/laravel-saml2');
22+
}
23+
24+
/**
25+
* Register the service provider.
26+
*
27+
* @return void
28+
*/
29+
public function register()
30+
{
31+
//
32+
}
33+
34+
/**
35+
* Get the services provided by the provider.
36+
*
37+
* @return array
38+
*/
39+
public function provides()
40+
{
41+
return array();
42+
}
43+
44+
}

src/config/.gitkeep

Whitespace-only changes.

src/controllers/.gitkeep

Whitespace-only changes.

src/lang/.gitkeep

Whitespace-only changes.

src/migrations/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)