Skip to content

Commit ee6765b

Browse files
author
Georgiy
authored
Upgrade (#568)
Merge pull request #568 * add new example for provider * update google service oauth2 * update readme * move examples * update google test
1 parent fa20bb9 commit ee6765b

74 files changed

Lines changed: 1137 additions & 295 deletions

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ examples/init.php
55
atlassian-ide-plugin.xml
66
nbproject/
77
.phpunit.result.cache
8+
.com

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ Included service implementations
9292

9393
Examples
9494
--------
95-
Examples of basic usage are located in the examples/ directory.
95+
```bash
96+
php -S localhost:8000 -t examples
97+
```
98+
Then point your browser to:
99+
```text
100+
http://localhost:8000/
101+
```
102+
96103

97104
Usage
98105
------
@@ -113,4 +120,4 @@ Tests
113120
------
114121
```bash
115122
composer tests
116-
```
123+
```

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
"predis/predis": "0.8.*@dev",
4141
"phpunit/phpunit": "8.5",
4242
"squizlabs/php_codesniffer": "^3.5",
43-
"friendsofphp/php-cs-fixer": "^2.16"
43+
"friendsofphp/php-cs-fixer": "^2.16",
44+
"symfony/var-dumper": "^5.1",
45+
"symfony/finder": "^5.1"
4446
},
4547
"suggest": {
4648
"symfony/http-foundation": "Allows using the Symfony Session storage backend.",

composer.lock

Lines changed: 77 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap.php

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,2 @@
11
<?php
2-
3-
/**
4-
* Bootstrap the library.
5-
*/
6-
require_once __DIR__ . '/../vendor/autoload.php';
7-
8-
// Setup error reporting
9-
error_reporting(E_ALL);
10-
ini_set('display_errors', 1);
11-
12-
// Setup the timezone
13-
ini_set('date.timezone', 'Europe/Amsterdam');
14-
15-
/**
16-
* Create a new instance of the URI class with the current URI, stripping the query string.
17-
*/
18-
$uriFactory = new \OAuth\Common\Http\Uri\UriFactory();
19-
$currentUri = $uriFactory->createFromSuperGlobalArray($_SERVER);
20-
$currentUri->setQuery('');
21-
22-
/**
23-
* Load the credential for the different services.
24-
*/
25-
require_once __DIR__ . '/init.php';
2+
require_once __DIR__ . './../vendor/autoload.php';

examples/bootstrap/css/bootstrap.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap/css/font-awesome.min.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
body {
2+
padding-top: 20px;
3+
padding-bottom: 20px;
4+
}
5+
.navbar {
6+
margin-bottom: 20px;
7+
}
8+
.passed {
9+
color: #339900;
10+
}
11+
.failed {
12+
color: #ff0000;
13+
}
122 KB
Binary file not shown.
74.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)