├── .gitignore
├── src
├── OTP
│ ├── Exception.php
│ ├── TOTP.php
│ └── HOTP.php
└── Base32.php
├── .github
└── workflows
│ └── php.yml
├── phpunit.xml
├── composer.json
├── LICENCE
├── tests
├── Rfc6238VectorTest.php
├── TimeBasedOneTimePasswordTest.php
└── HashBasedOneTimePasswordTest.php
├── README.md
└── composer.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | coverage/
2 | vendor/
3 | .phpunit.cache/
4 | coverage.xml
5 |
--------------------------------------------------------------------------------
/src/OTP/Exception.php:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 | tests
17 |
18 |
19 |
20 |
22 |
23 | src
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pedrosancao/php-otp",
3 | "description": "PHP implementation of HMAC-based one-time password algorithm according to RFC 4226 and RFC 6238 compatible with Google Authenticator",
4 | "keywords": ["otp", "hotp", "totp", "RFC 4226", "RFC 6238", "Google Authenticator", "one-time password", "two steps authentication"],
5 | "homepage": "https://github.com/pedrosancao/php-otp",
6 | "type": "library",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Pedro Sanção",
11 | "homepage": "http://pedrosancao.github.io"
12 | }
13 | ],
14 | "minimum-stability": "stable",
15 | "require": {
16 | "php": ">=7.3",
17 | "pedrosancao/php-random-data": "^1.0"
18 | },
19 | "autoload": {
20 | "psr-4": { "PedroSancao\\": "src/" }
21 | },
22 | "require-dev": {
23 | "phpunit/phpunit": "^9.4"
24 | },
25 | "scripts": {
26 | "test": "phpunit --coverage-clover coverage.xml",
27 | "test:coverage": "phpunit --coverage-text --coverage-html coverage"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/LICENCE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2018 Pedro Sanção
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | 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, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/src/OTP/TOTP.php:
--------------------------------------------------------------------------------
1 | timeStep);
47 | }
48 |
49 | /**
50 | * Gets password
51 | *
52 | * @param int $timestamp
53 | * @return string
54 | */
55 | public function getPassword($timestamp = null)
56 | {
57 | return parent::getPassword($timestamp);
58 | }
59 |
60 | /**
61 | *
62 | * @param string $password
63 | * @param int $timestamp
64 | * @param int $window how many passwords to verify against
65 | */
66 | public function verify($password, $timestamp = null, $window = 2)
67 | {
68 | return parent::verify($password, $timestamp, $window);
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/src/Base32.php:
--------------------------------------------------------------------------------
1 | 'O',
32 | '1' => 'I',
33 | ' ' => '',
34 | );
35 | $map = array_flip(array_merge(range('A', 'Z'), range(2, 7)));
36 | $normalized = strtr(strtoupper(rtrim($data, '=')), $replacements);
37 | if (preg_match('/[^A-Z2-7]/', $normalized)) {
38 | return false;
39 | }
40 | $chars = str_split($normalized);
41 | $charsCount = count($chars);
42 | for ($i = 0; $i < $charsCount; $i++) {
43 | $binary .= str_pad(decbin($map[$chars[$i]]), 5, 0, STR_PAD_LEFT);
44 | }
45 | $groups = str_split(substr($binary, 0, strlen($binary) - strlen($binary) % 8), 8);
46 | $groupsLimit = count($groups);
47 | for ($i = 0; $i < $groupsLimit; $i++) {
48 | $decoded .= chr(bindec($groups[$i]));
49 | }
50 | return $decoded;
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/tests/Rfc6238VectorTest.php:
--------------------------------------------------------------------------------
1 | useSha1();
19 | $this->assertTrue($totp->verify('94287082', 59, 1));
20 | $this->assertTrue($totp->verify('07081804', 1111111109, 1));
21 | $this->assertTrue($totp->verify('14050471', 1111111111, 1));
22 | $this->assertTrue($totp->verify('89005924', 1234567890, 1));
23 | $this->assertTrue($totp->verify('69279037', 2000000000, 1));
24 | $this->assertTrue($totp->verify('65353130', 20000000000, 1));
25 | }
26 |
27 | /** @test */
28 | public function is_should_generate_correct_passwords_using_sha256()
29 | {
30 | $totp = TOTP::createRaw('12345678901234567890123456789012', 8)->useSha256();
31 | $this->assertTrue($totp->verify('46119246', 59, 1));
32 | $this->assertTrue($totp->verify('68084774', 1111111109, 1));
33 | $this->assertTrue($totp->verify('67062674', 1111111111, 1));
34 | $this->assertTrue($totp->verify('91819424', 1234567890, 1));
35 | $this->assertTrue($totp->verify('90698825', 2000000000, 1));
36 | $this->assertTrue($totp->verify('77737706', 20000000000, 1));
37 | }
38 |
39 | /** @test */
40 | public function is_should_generate_correct_passwords_using_sha512()
41 | {
42 | $totp = TOTP::createRaw('1234567890123456789012345678901234567890123456789012345678901234', 8)->useSha512();
43 | $this->assertTrue($totp->verify('90693936', 59, 1));
44 | $this->assertTrue($totp->verify('25091201', 1111111109, 1));
45 | $this->assertTrue($totp->verify('99943326', 1111111111, 1));
46 | $this->assertTrue($totp->verify('93441116', 1234567890, 1));
47 | $this->assertTrue($totp->verify('38618901', 2000000000, 1));
48 | $this->assertTrue($totp->verify('47863826', 20000000000, 1));
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # A PHP One-Time Password implementation
2 |
3 | 
4 | 
5 | 
6 | 
7 | 
8 | 
9 | 
10 |
11 | This small library implements the HMAC-based one-time password algorithms
12 | used mostly on two steps authentication: time based TOTP
13 | ([RFC 6238](https://tools.ietf.org/html/rfc6238)) and HOTP
14 | ([RFC 4226](https://tools.ietf.org/html/rfc4226)).
15 |
16 | Easily and quick allows to configure and use mobile apps like Google Authenticator.
17 |
18 | ## Requirements
19 |
20 | Although it should work even on PHP 5.4. We strongly recommend using PHP >= 7.3 as
21 | lower versions have [reached end of life](https://www.php.net/supported-versions.php).
22 |
23 | ## Installation
24 |
25 | Preferable use composer
26 |
27 | ```sh
28 | composer require pedrosancao/php-otp
29 | ```
30 |
31 | ## Usage
32 |
33 | ### Syncing time-based one-time password with client
34 |
35 | Create a new token
36 |
37 | ```php
38 | $totp = PedroSancao\OTP\TOTP::create();
39 | ```
40 |
41 | Present URI to user as a QR-Code or show base 32 encoded secret
42 |
43 | ```php
44 | // example using Google API, it's recommended to use a local library
45 | $uri = $totp->getUri('user@domain.com', 'Issuer Name');
46 | $src = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=' . urlencode($uri);
47 | printf('
', $src);
48 | // OR
49 | echo $totp->getSecretReadable();
50 | ```
51 |
52 | Store the shared secret
53 |
54 | ```php
55 | $secret = $totp->getRawSecret();
56 | ```
57 |
58 | ### Verifying passwords
59 |
60 | ```php
61 | $totp = PedroSancao\OTP\TOTP::createRaw($storedSecret);
62 | $totp->verify($inputPassword);
63 | ```
64 |
65 | ### Using as client
66 |
67 | ```php
68 | $totp = PedroSancao\OTP\TOTP::create($base32encodedSecret);
69 | // or
70 | $totp = PedroSancao\OTP\TOTP::createRaw($storedSecret);
71 | // or
72 | $totp = PedroSancao\OTP\TOTP::createFromURI($uriFromQrCode);
73 | echo $totp->getPassword();
74 | ```
75 |
76 | ### Change hashing algorithm
77 |
78 | SHA1 is the default method. If you want to use another after create a new instance
79 | with one of `create*` methods call `useSha256` or `useSha512`:
80 |
81 | ```php
82 | $totp = PedroSancao\OTP\TOTP::createRaw($storedSecret)->useSha256();
83 | ```
84 |
85 | ## To do list
86 |
87 | - Implement [all URI parameters](https://github.com/google/google-authenticator/wiki/Key-Uri-Format)
88 |
89 | ## Licence
90 |
91 | This library is release under the [MIT licence](LICENCE).
92 |
--------------------------------------------------------------------------------
/tests/TimeBasedOneTimePasswordTest.php:
--------------------------------------------------------------------------------
1 | getTimestamp();
7 | }
8 |
9 | namespace Tests;
10 |
11 | use DateTime;
12 | use PedroSancao\OTP\TOTP;
13 | use PHPUnit\Framework\TestCase;
14 |
15 | final class TimeBasedOneTimePasswordTest extends TestCase
16 | {
17 | /** @test */
18 | public function it_should_create_a_instance()
19 | {
20 | $totp = TOTP::create();
21 | $this->assertInstanceOf(TOTP::class, $totp);
22 | }
23 |
24 | /** @test */
25 | public function it_should_create_a_instance_from_uri()
26 | {
27 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
28 | $uri = "otpauth://totp/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
29 | $totp = TOTP::createFromURI($uri);
30 | $this->assertInstanceOf(TOTP::class, $totp);
31 | $this->assertEquals($base32Data, $totp->getSecret());
32 | }
33 |
34 | /** @test */
35 | public function it_should_export_uri()
36 | {
37 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
38 | $uri = "otpauth://totp/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
39 | $totp = TOTP::create($base32Data);
40 | $this->assertInstanceOf(TOTP::class, $totp);
41 | $this->assertEquals($uri, $totp->getUri('john.doe@example.com', 'PedroSancao'));
42 | }
43 |
44 | /** @test */
45 | public function it_should_generate_correct_password()
46 | {
47 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
48 | $totp = TOTP::create($base32Data);
49 | $this->assertInstanceOf(TOTP::class, $totp);
50 | $timestamp = (new DateTime('2020-11-22 19:20:00'))->getTimestamp();
51 | $this->assertEquals('478792', $totp->getPassword($timestamp));
52 | }
53 |
54 | /** @test */
55 | public function it_should_verify_correct_code()
56 | {
57 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
58 | $totp = TOTP::create($base32Data);
59 | $this->assertInstanceOf(TOTP::class, $totp);
60 | $this->assertTrue($totp->verify('478792'));
61 | }
62 |
63 | /** @test */
64 | public function it_should_verify_correct_code_within_even_window()
65 | {
66 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
67 | $totp = TOTP::create($base32Data);
68 | $this->assertInstanceOf(TOTP::class, $totp);
69 | $this->assertTrue($totp->verify('928895', null, 2));
70 | }
71 |
72 | /** @test */
73 | public function it_should_verify_correct_code_within_odd_window()
74 | {
75 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
76 | $totp = TOTP::create($base32Data);
77 | $this->assertInstanceOf(TOTP::class, $totp);
78 | $this->assertTrue($totp->verify('954912', null, 3));
79 | $this->assertTrue($totp->verify('928895', null, 3));
80 | }
81 |
82 | /** @test */
83 | public function it_should_limit_window_to_max()
84 | {
85 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
86 | $totp = TOTP::create($base32Data);
87 | $this->assertInstanceOf(TOTP::class, $totp);
88 | $maxWindowSize = new \ReflectionProperty(TOTP::class, 'maxWindowSize');
89 | $maxWindowSize->setAccessible(true);
90 | $maxWindowSize->setValue($totp, 1);
91 | $this->assertFalse($totp->verify('954912', null, 3));
92 | $this->assertFalse($totp->verify('928895', null, 3));
93 | }
94 |
95 | /** @test */
96 | public function it_should_()
97 | {
98 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
99 | $totp = TOTP::create($base32Data);
100 | $this->assertInstanceOf(TOTP::class, $totp);
101 | }
102 | }
103 |
104 |
--------------------------------------------------------------------------------
/tests/HashBasedOneTimePasswordTest.php:
--------------------------------------------------------------------------------
1 | assertInstanceOf(HOTP::class, $hotp);
16 | }
17 |
18 | /** @test */
19 | public function it_should_create_a_instance_from_raw()
20 | {
21 | $hotp = HOTP::createRaw();
22 | $this->assertInstanceOf(HOTP::class, $hotp);
23 | }
24 |
25 | /** @test */
26 | public function it_should_create_a_instance_with_base32_data()
27 | {
28 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
29 | $rawData = "\x7a\x76\x73\x4b\x77\x6f\x52\x44\x72\x61\x4b\x61"
30 | . "\x6d\x78\x65\x49\x46\x78\x65\x66\x15\x4d\x6a\x55\xd2\x36"
31 | . "\x8d\x90\x99\xc2\x75\xae\x8a\x8f\x10\x22\xe0\x4d\x28\xdb";
32 | $hotp = HOTP::create($base32Data);
33 | $this->assertInstanceOf(HOTP::class, $hotp);
34 | $this->assertEquals($rawData, $hotp->getRawSecret());
35 | }
36 |
37 | /** @test */
38 | public function it_should_create_a_instance_with_raw_data()
39 | {
40 | $rawData = "\x7a\x76\x73\x4b\x77\x6f\x52\x44\x72\x61\x4b\x61"
41 | . "\x6d\x78\x65\x49\x46\x78\x65\x66\x15\x4d\x6a\x55\xd2\x36"
42 | . "\x8d\x90\x99\xc2\x75\xae\x8a\x8f\x10\x22\xe0\x4d\x28\xdb";
43 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
44 | $hotp = HOTP::createRaw($rawData);
45 | $this->assertInstanceOf(HOTP::class, $hotp);
46 | $this->assertEquals($base32Data, $hotp->getSecret());
47 | }
48 |
49 | /** @test */
50 | public function it_should_export_readable_code()
51 | {
52 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
53 | $readableData = 'PJ3H GS3X N5JE I4TB JNQW 26DF JFDH QZLG CVGW UVOS G2GZ BGOC OWXI VDYQ ELQE 2KG3';
54 | $hotp = HOTP::create($base32Data);
55 | $this->assertInstanceOf(HOTP::class, $hotp);
56 | $this->assertEquals($readableData, $hotp->getSecretReadable());
57 | }
58 |
59 | /** @test */
60 | public function it_should_create_a_instance_from_uri()
61 | {
62 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
63 | $uri = "otpauth://hotp/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
64 | $hotp = HOTP::createFromURI($uri);
65 | $this->assertInstanceOf(HOTP::class, $hotp);
66 | $this->assertEquals($base32Data, $hotp->getSecret());
67 | }
68 |
69 | /** @test */
70 | public function it_should_export_uri()
71 | {
72 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
73 | $uri = "otpauth://hotp/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
74 | $hotp = HOTP::create($base32Data);
75 | $this->assertInstanceOf(HOTP::class, $hotp);
76 | $this->assertEquals($uri, $hotp->getUri('john.doe@example.com', 'PedroSancao'));
77 | }
78 |
79 | /** @test */
80 | public function it_should_throw_exception_on_invalid_base32()
81 | {
82 | $invalidBase32Data = 'PJ3HGS3XN5JEI4T8JNQW26DFJFDHQZLGCVGWUVOSG2GZ8GOCOWXIVDYQELQE2KG3';
83 | $this->expectException(Exception::class);
84 | HOTP::create($invalidBase32Data);
85 | }
86 |
87 | /** @test */
88 | public function it_should_throw_exception_on_invalid_uri_scheme()
89 | {
90 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
91 | $invalidScheme = 'https';
92 | $uri = "{$invalidScheme}://hotp/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
93 | $this->expectException(Exception::class);
94 | HOTP::createFromURI($uri);
95 | }
96 |
97 | /** @test */
98 | public function it_should_throw_exception_on_invalid_uri_password_type()
99 | {
100 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
101 | $invalidType = 'https';
102 | $uri = "otpauth://{$invalidType}/PedroSancao:john.doe%40example.com?secret={$base32Data}&issuer=PedroSancao";
103 | $this->expectException(Exception::class);
104 | HOTP::createFromURI($uri);
105 | }
106 |
107 | /** @test */
108 | public function it_should_throw_exception_on_uri_without_secret()
109 | {
110 | $uri = "otpauth://hotp/PedroSancao:john.doe%40example.com?issuer=PedroSancao";
111 | $this->expectException(Exception::class);
112 | HOTP::createFromURI($uri);
113 | }
114 |
115 | /** @test */
116 | public function it_should_generate_correct_password()
117 | {
118 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
119 | $hotp = HOTP::create($base32Data);
120 | $this->assertInstanceOf(HOTP::class, $hotp);
121 | $this->assertEquals('395051', $hotp->getPassword());
122 | }
123 |
124 | /** @test */
125 | public function it_should_generate_correct_password_with_counter()
126 | {
127 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
128 | $hotp = HOTP::create($base32Data);
129 | $this->assertInstanceOf(HOTP::class, $hotp);
130 | $this->assertEquals('478792', $hotp->getPassword(53535760));
131 | }
132 |
133 | /** @test */
134 | public function it_should_verify_correct_code()
135 | {
136 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
137 | $hotp = HOTP::create($base32Data);
138 | $this->assertInstanceOf(HOTP::class, $hotp);
139 | $this->assertTrue($hotp->verify('478792', 53535760));
140 | }
141 |
142 | /** @test */
143 | public function it_should_verify_incorrect_code()
144 | {
145 | $base32Data = 'PJ3HGS3XN5JEI4TBJNQW26DFJFDHQZLGCVGWUVOSG2GZBGOCOWXIVDYQELQE2KG3';
146 | $hotp = HOTP::create($base32Data);
147 | $this->assertInstanceOf(HOTP::class, $hotp);
148 | $this->assertFalse($hotp->verify('954912', 53535760));
149 | $this->assertFalse($hotp->verify('928895', 53535760));
150 | }
151 | }
152 |
--------------------------------------------------------------------------------
/src/OTP/HOTP.php:
--------------------------------------------------------------------------------
1 | secret = $secret;
56 | $this->size = $size;
57 | }
58 |
59 | /**
60 | * Set hashing algorithm to SHA-1
61 | *
62 | * @return $this
63 | */
64 | public function useSha1()
65 | {
66 | $this->algorithm = self::ALGORITHM_SHA1;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Set hashing algorithm to SHA-256
72 | *
73 | * @return $this
74 | */
75 | public function useSha256()
76 | {
77 | $this->algorithm = self::ALGORITHM_SHA256;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Set hashing algorithm to SHA-512
83 | *
84 | * @return $this
85 | */
86 | public function useSha512()
87 | {
88 | $this->algorithm = self::ALGORITHM_SHA512;
89 | return $this;
90 | }
91 |
92 | /**
93 | * Gets default counter value
94 | *
95 | * @return int
96 | */
97 | protected function getDefaultCounter()
98 | {
99 | return 1;
100 | }
101 |
102 | /**
103 | * Apply on counter before generation password
104 | *
105 | * @param int $counter
106 | */
107 | protected function counterHook(&$counter)
108 | {
109 | }
110 |
111 | /**
112 | * Creates from base 32 encoded secret
113 | *
114 | * @param string $secret
115 | * @param int $size
116 | * @return HOTP
117 | * @throws Exception
118 | */
119 | public static function create($secret = null, $size = 6)
120 | {
121 | if (!is_null($secret)) {
122 | $secret = Base32::decode($secret);
123 | if ($secret === false) {
124 | throw new Exception('Invalid base 32 secret');
125 | }
126 | }
127 | return static::createRaw($secret, $size);
128 | }
129 |
130 | /**
131 | * Creates from bytes secret string
132 | *
133 | * @param string $secret
134 | * @param int $size
135 | * @return HOTP
136 | */
137 | public static function createRaw($secret = null, $size = 6)
138 | {
139 | if (is_null($secret)) {
140 | $secret = Random::raw(15);
141 | }
142 | return new static($secret, $size);
143 | }
144 |
145 | /**
146 | * Create the object from URI
147 | *
148 | * @param string $uri
149 | * @return static
150 | *
151 | * @throws Exception
152 | */
153 | public static function createFromURI($uri, $size = 6)
154 | {
155 | $fragments = parse_url($uri);
156 |
157 | if ($fragments === false || !key_exists('scheme', $fragments) || $fragments['scheme'] !== 'otpauth' || !key_exists('query', $fragments)) {
158 | throw new Exception('Invalid one time password URI');
159 | }
160 | if (!key_exists('host', $fragments) || $fragments['host'] !== static::$type) {
161 | throw new Exception('Invalid one time password type');
162 | }
163 | $query = [];
164 | parse_str($fragments['query'], $query);
165 | if (!key_exists('secret', $query)) {
166 | throw new Exception('URI contains no secret');
167 | }
168 |
169 | return static::create($query['secret'], $size);
170 | }
171 |
172 | /**
173 | * Generates a HMAC based password
174 | *
175 | * @param int $counter
176 | * @return string
177 | */
178 | public function generatePassword($counter = null)
179 | {
180 | // pack as 64 bits int
181 | $counterBytes = pack('N*', 0, $counter);
182 | // calculate HMAC hash
183 | $hash = hash_hmac($this->algorithm, $counterBytes, $this->secret, true);
184 | // get 4 bit int
185 | $offset = ord($hash[strlen($hash) - 1]) & 0xF;
186 | // get 31 bits int from offset
187 | $code = unpack('Nint', substr($hash, $offset, 4))['int'] & 0x7FFFFFFF;
188 | // format size
189 | return str_pad($code % pow(10, $this->size), $this->size, 0, STR_PAD_LEFT);
190 | }
191 |
192 | /**
193 | * Gets password
194 | *
195 | * @param int $counter
196 | * @return string
197 | */
198 | public function getPassword($counter = null)
199 | {
200 | if (is_null($counter)) {
201 | $counter = $this->getDefaultCounter();
202 | }
203 | $this->counterHook($counter);
204 | return $this->generatePassword($counter);
205 | }
206 |
207 | /**
208 | *
209 | * @param string $password
210 | * @param int $counter
211 | * @param int $window how many passwords to verify against
212 | */
213 | public function verify($password, $counter = null, $window = 1)
214 | {
215 | if (is_null($counter)) {
216 | $counter = $this->getDefaultCounter();
217 | }
218 | $this->counterHook($counter);
219 | if ($window > $this->maxWindowSize || $window < 1) {
220 | $window = max($this->maxWindowSize, min(1, $window));
221 | }
222 | $counter += 1 - ceil($window / 2);
223 | for ($i = 0; $i < $window; $i++, $counter++) {
224 | if ($this->generatePassword($counter) === $password) {
225 | return true;
226 | }
227 | }
228 | return false;
229 | }
230 |
231 | /**
232 | * Gets the secret encoded in base 32
233 | *
234 | * @return string
235 | */
236 | public function getSecret()
237 | {
238 | return Base32::encode($this->secret, false);
239 | }
240 |
241 | /**
242 | * Gets the secret encoded in base 32
243 | *
244 | * @return string
245 | */
246 | public function getRawSecret()
247 | {
248 | return $this->secret;
249 | }
250 |
251 | /**
252 | * Gets the secret encoded in base 32 with added spaces for readability
253 | *
254 | * @return string
255 | */
256 | public function getSecretReadable()
257 | {
258 | return trim(chunk_split($this->getSecret(), 4, ' '));
259 | }
260 |
261 | /**
262 | * Gets the URI for configuration
263 | *
264 | * @param string $label
265 | * @param string $issuer
266 | * @return string
267 | */
268 | public function getUri($label, $issuer = null)
269 | {
270 | $params = array('secret' => $this->getSecret());
271 | $encodedLabel = rawurlencode($label);
272 | if (!is_null($issuer)) {
273 | $encodedLabel = rawurlencode($issuer) . ':' . $encodedLabel;
274 | $params['issuer'] = $issuer;
275 | }
276 | return sprintf('otpauth://%s/%s?%s', static::$type, $encodedLabel, http_build_query($params));
277 | }
278 |
279 | }
280 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "4652c1e0ce3e2f6009a7607af227fe88",
8 | "packages": [
9 | {
10 | "name": "pedrosancao/php-random-data",
11 | "version": "v1.0.0",
12 | "source": {
13 | "type": "git",
14 | "url": "https://github.com/pedrosancao/php-random-data.git",
15 | "reference": "4d0e6f23b796de506e80242f2cb37cfbf5f549f3"
16 | },
17 | "dist": {
18 | "type": "zip",
19 | "url": "https://api.github.com/repos/pedrosancao/php-random-data/zipball/4d0e6f23b796de506e80242f2cb37cfbf5f549f3",
20 | "reference": "4d0e6f23b796de506e80242f2cb37cfbf5f549f3",
21 | "shasum": ""
22 | },
23 | "require": {
24 | "php": ">=5.4"
25 | },
26 | "type": "library",
27 | "autoload": {
28 | "psr-4": {
29 | "PedroSancao\\": "src/"
30 | }
31 | },
32 | "notification-url": "https://packagist.org/downloads/",
33 | "license": [
34 | "MIT"
35 | ],
36 | "authors": [
37 | {
38 | "name": "Pedro Sanção",
39 | "homepage": "http://pedrosancao.github.io"
40 | }
41 | ],
42 | "description": "small library generates high entropy random data",
43 | "homepage": "https://github.com/pedrosancao/php-random-data",
44 | "keywords": [
45 | "high entropy",
46 | "random",
47 | "security"
48 | ],
49 | "support": {
50 | "issues": "https://github.com/pedrosancao/php-random-data/issues",
51 | "source": "https://github.com/pedrosancao/php-random-data/tree/master"
52 | },
53 | "time": "2018-09-09T19:54:04+00:00"
54 | }
55 | ],
56 | "packages-dev": [
57 | {
58 | "name": "doctrine/instantiator",
59 | "version": "1.4.0",
60 | "source": {
61 | "type": "git",
62 | "url": "https://github.com/doctrine/instantiator.git",
63 | "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
64 | },
65 | "dist": {
66 | "type": "zip",
67 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
68 | "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
69 | "shasum": ""
70 | },
71 | "require": {
72 | "php": "^7.1 || ^8.0"
73 | },
74 | "require-dev": {
75 | "doctrine/coding-standard": "^8.0",
76 | "ext-pdo": "*",
77 | "ext-phar": "*",
78 | "phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
79 | "phpstan/phpstan": "^0.12",
80 | "phpstan/phpstan-phpunit": "^0.12",
81 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
82 | },
83 | "type": "library",
84 | "autoload": {
85 | "psr-4": {
86 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
87 | }
88 | },
89 | "notification-url": "https://packagist.org/downloads/",
90 | "license": [
91 | "MIT"
92 | ],
93 | "authors": [
94 | {
95 | "name": "Marco Pivetta",
96 | "email": "ocramius@gmail.com",
97 | "homepage": "https://ocramius.github.io/"
98 | }
99 | ],
100 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
101 | "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
102 | "keywords": [
103 | "constructor",
104 | "instantiate"
105 | ],
106 | "support": {
107 | "issues": "https://github.com/doctrine/instantiator/issues",
108 | "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
109 | },
110 | "funding": [
111 | {
112 | "url": "https://www.doctrine-project.org/sponsorship.html",
113 | "type": "custom"
114 | },
115 | {
116 | "url": "https://www.patreon.com/phpdoctrine",
117 | "type": "patreon"
118 | },
119 | {
120 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
121 | "type": "tidelift"
122 | }
123 | ],
124 | "time": "2020-11-10T18:47:58+00:00"
125 | },
126 | {
127 | "name": "myclabs/deep-copy",
128 | "version": "1.10.2",
129 | "source": {
130 | "type": "git",
131 | "url": "https://github.com/myclabs/DeepCopy.git",
132 | "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
133 | },
134 | "dist": {
135 | "type": "zip",
136 | "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
137 | "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
138 | "shasum": ""
139 | },
140 | "require": {
141 | "php": "^7.1 || ^8.0"
142 | },
143 | "replace": {
144 | "myclabs/deep-copy": "self.version"
145 | },
146 | "require-dev": {
147 | "doctrine/collections": "^1.0",
148 | "doctrine/common": "^2.6",
149 | "phpunit/phpunit": "^7.1"
150 | },
151 | "type": "library",
152 | "autoload": {
153 | "psr-4": {
154 | "DeepCopy\\": "src/DeepCopy/"
155 | },
156 | "files": [
157 | "src/DeepCopy/deep_copy.php"
158 | ]
159 | },
160 | "notification-url": "https://packagist.org/downloads/",
161 | "license": [
162 | "MIT"
163 | ],
164 | "description": "Create deep copies (clones) of your objects",
165 | "keywords": [
166 | "clone",
167 | "copy",
168 | "duplicate",
169 | "object",
170 | "object graph"
171 | ],
172 | "support": {
173 | "issues": "https://github.com/myclabs/DeepCopy/issues",
174 | "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
175 | },
176 | "funding": [
177 | {
178 | "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
179 | "type": "tidelift"
180 | }
181 | ],
182 | "time": "2020-11-13T09:40:50+00:00"
183 | },
184 | {
185 | "name": "nikic/php-parser",
186 | "version": "v4.10.2",
187 | "source": {
188 | "type": "git",
189 | "url": "https://github.com/nikic/PHP-Parser.git",
190 | "reference": "658f1be311a230e0907f5dfe0213742aff0596de"
191 | },
192 | "dist": {
193 | "type": "zip",
194 | "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/658f1be311a230e0907f5dfe0213742aff0596de",
195 | "reference": "658f1be311a230e0907f5dfe0213742aff0596de",
196 | "shasum": ""
197 | },
198 | "require": {
199 | "ext-tokenizer": "*",
200 | "php": ">=7.0"
201 | },
202 | "require-dev": {
203 | "ircmaxell/php-yacc": "^0.0.7",
204 | "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
205 | },
206 | "bin": [
207 | "bin/php-parse"
208 | ],
209 | "type": "library",
210 | "extra": {
211 | "branch-alias": {
212 | "dev-master": "4.9-dev"
213 | }
214 | },
215 | "autoload": {
216 | "psr-4": {
217 | "PhpParser\\": "lib/PhpParser"
218 | }
219 | },
220 | "notification-url": "https://packagist.org/downloads/",
221 | "license": [
222 | "BSD-3-Clause"
223 | ],
224 | "authors": [
225 | {
226 | "name": "Nikita Popov"
227 | }
228 | ],
229 | "description": "A PHP parser written in PHP",
230 | "keywords": [
231 | "parser",
232 | "php"
233 | ],
234 | "support": {
235 | "issues": "https://github.com/nikic/PHP-Parser/issues",
236 | "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.2"
237 | },
238 | "time": "2020-09-26T10:30:38+00:00"
239 | },
240 | {
241 | "name": "phar-io/manifest",
242 | "version": "2.0.1",
243 | "source": {
244 | "type": "git",
245 | "url": "https://github.com/phar-io/manifest.git",
246 | "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133"
247 | },
248 | "dist": {
249 | "type": "zip",
250 | "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
251 | "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
252 | "shasum": ""
253 | },
254 | "require": {
255 | "ext-dom": "*",
256 | "ext-phar": "*",
257 | "ext-xmlwriter": "*",
258 | "phar-io/version": "^3.0.1",
259 | "php": "^7.2 || ^8.0"
260 | },
261 | "type": "library",
262 | "extra": {
263 | "branch-alias": {
264 | "dev-master": "2.0.x-dev"
265 | }
266 | },
267 | "autoload": {
268 | "classmap": [
269 | "src/"
270 | ]
271 | },
272 | "notification-url": "https://packagist.org/downloads/",
273 | "license": [
274 | "BSD-3-Clause"
275 | ],
276 | "authors": [
277 | {
278 | "name": "Arne Blankerts",
279 | "email": "arne@blankerts.de",
280 | "role": "Developer"
281 | },
282 | {
283 | "name": "Sebastian Heuer",
284 | "email": "sebastian@phpeople.de",
285 | "role": "Developer"
286 | },
287 | {
288 | "name": "Sebastian Bergmann",
289 | "email": "sebastian@phpunit.de",
290 | "role": "Developer"
291 | }
292 | ],
293 | "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
294 | "support": {
295 | "issues": "https://github.com/phar-io/manifest/issues",
296 | "source": "https://github.com/phar-io/manifest/tree/master"
297 | },
298 | "time": "2020-06-27T14:33:11+00:00"
299 | },
300 | {
301 | "name": "phar-io/version",
302 | "version": "3.0.2",
303 | "source": {
304 | "type": "git",
305 | "url": "https://github.com/phar-io/version.git",
306 | "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0"
307 | },
308 | "dist": {
309 | "type": "zip",
310 | "url": "https://api.github.com/repos/phar-io/version/zipball/c6bb6825def89e0a32220f88337f8ceaf1975fa0",
311 | "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0",
312 | "shasum": ""
313 | },
314 | "require": {
315 | "php": "^7.2 || ^8.0"
316 | },
317 | "type": "library",
318 | "autoload": {
319 | "classmap": [
320 | "src/"
321 | ]
322 | },
323 | "notification-url": "https://packagist.org/downloads/",
324 | "license": [
325 | "BSD-3-Clause"
326 | ],
327 | "authors": [
328 | {
329 | "name": "Arne Blankerts",
330 | "email": "arne@blankerts.de",
331 | "role": "Developer"
332 | },
333 | {
334 | "name": "Sebastian Heuer",
335 | "email": "sebastian@phpeople.de",
336 | "role": "Developer"
337 | },
338 | {
339 | "name": "Sebastian Bergmann",
340 | "email": "sebastian@phpunit.de",
341 | "role": "Developer"
342 | }
343 | ],
344 | "description": "Library for handling version information and constraints",
345 | "support": {
346 | "issues": "https://github.com/phar-io/version/issues",
347 | "source": "https://github.com/phar-io/version/tree/master"
348 | },
349 | "time": "2020-06-27T14:39:04+00:00"
350 | },
351 | {
352 | "name": "phpdocumentor/reflection-common",
353 | "version": "2.2.0",
354 | "source": {
355 | "type": "git",
356 | "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
357 | "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
358 | },
359 | "dist": {
360 | "type": "zip",
361 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
362 | "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
363 | "shasum": ""
364 | },
365 | "require": {
366 | "php": "^7.2 || ^8.0"
367 | },
368 | "type": "library",
369 | "extra": {
370 | "branch-alias": {
371 | "dev-2.x": "2.x-dev"
372 | }
373 | },
374 | "autoload": {
375 | "psr-4": {
376 | "phpDocumentor\\Reflection\\": "src/"
377 | }
378 | },
379 | "notification-url": "https://packagist.org/downloads/",
380 | "license": [
381 | "MIT"
382 | ],
383 | "authors": [
384 | {
385 | "name": "Jaap van Otterdijk",
386 | "email": "opensource@ijaap.nl"
387 | }
388 | ],
389 | "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
390 | "homepage": "http://www.phpdoc.org",
391 | "keywords": [
392 | "FQSEN",
393 | "phpDocumentor",
394 | "phpdoc",
395 | "reflection",
396 | "static analysis"
397 | ],
398 | "support": {
399 | "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
400 | "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
401 | },
402 | "time": "2020-06-27T09:03:43+00:00"
403 | },
404 | {
405 | "name": "phpdocumentor/reflection-docblock",
406 | "version": "5.2.2",
407 | "source": {
408 | "type": "git",
409 | "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
410 | "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556"
411 | },
412 | "dist": {
413 | "type": "zip",
414 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556",
415 | "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556",
416 | "shasum": ""
417 | },
418 | "require": {
419 | "ext-filter": "*",
420 | "php": "^7.2 || ^8.0",
421 | "phpdocumentor/reflection-common": "^2.2",
422 | "phpdocumentor/type-resolver": "^1.3",
423 | "webmozart/assert": "^1.9.1"
424 | },
425 | "require-dev": {
426 | "mockery/mockery": "~1.3.2"
427 | },
428 | "type": "library",
429 | "extra": {
430 | "branch-alias": {
431 | "dev-master": "5.x-dev"
432 | }
433 | },
434 | "autoload": {
435 | "psr-4": {
436 | "phpDocumentor\\Reflection\\": "src"
437 | }
438 | },
439 | "notification-url": "https://packagist.org/downloads/",
440 | "license": [
441 | "MIT"
442 | ],
443 | "authors": [
444 | {
445 | "name": "Mike van Riel",
446 | "email": "me@mikevanriel.com"
447 | },
448 | {
449 | "name": "Jaap van Otterdijk",
450 | "email": "account@ijaap.nl"
451 | }
452 | ],
453 | "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
454 | "support": {
455 | "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
456 | "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
457 | },
458 | "time": "2020-09-03T19:13:55+00:00"
459 | },
460 | {
461 | "name": "phpdocumentor/type-resolver",
462 | "version": "1.4.0",
463 | "source": {
464 | "type": "git",
465 | "url": "https://github.com/phpDocumentor/TypeResolver.git",
466 | "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0"
467 | },
468 | "dist": {
469 | "type": "zip",
470 | "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
471 | "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
472 | "shasum": ""
473 | },
474 | "require": {
475 | "php": "^7.2 || ^8.0",
476 | "phpdocumentor/reflection-common": "^2.0"
477 | },
478 | "require-dev": {
479 | "ext-tokenizer": "*"
480 | },
481 | "type": "library",
482 | "extra": {
483 | "branch-alias": {
484 | "dev-1.x": "1.x-dev"
485 | }
486 | },
487 | "autoload": {
488 | "psr-4": {
489 | "phpDocumentor\\Reflection\\": "src"
490 | }
491 | },
492 | "notification-url": "https://packagist.org/downloads/",
493 | "license": [
494 | "MIT"
495 | ],
496 | "authors": [
497 | {
498 | "name": "Mike van Riel",
499 | "email": "me@mikevanriel.com"
500 | }
501 | ],
502 | "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
503 | "support": {
504 | "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
505 | "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
506 | },
507 | "time": "2020-09-17T18:55:26+00:00"
508 | },
509 | {
510 | "name": "phpspec/prophecy",
511 | "version": "1.12.1",
512 | "source": {
513 | "type": "git",
514 | "url": "https://github.com/phpspec/prophecy.git",
515 | "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d"
516 | },
517 | "dist": {
518 | "type": "zip",
519 | "url": "https://api.github.com/repos/phpspec/prophecy/zipball/8ce87516be71aae9b956f81906aaf0338e0d8a2d",
520 | "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d",
521 | "shasum": ""
522 | },
523 | "require": {
524 | "doctrine/instantiator": "^1.2",
525 | "php": "^7.2 || ~8.0, <8.1",
526 | "phpdocumentor/reflection-docblock": "^5.2",
527 | "sebastian/comparator": "^3.0 || ^4.0",
528 | "sebastian/recursion-context": "^3.0 || ^4.0"
529 | },
530 | "require-dev": {
531 | "phpspec/phpspec": "^6.0",
532 | "phpunit/phpunit": "^8.0 || ^9.0 <9.3"
533 | },
534 | "type": "library",
535 | "extra": {
536 | "branch-alias": {
537 | "dev-master": "1.11.x-dev"
538 | }
539 | },
540 | "autoload": {
541 | "psr-4": {
542 | "Prophecy\\": "src/Prophecy"
543 | }
544 | },
545 | "notification-url": "https://packagist.org/downloads/",
546 | "license": [
547 | "MIT"
548 | ],
549 | "authors": [
550 | {
551 | "name": "Konstantin Kudryashov",
552 | "email": "ever.zet@gmail.com",
553 | "homepage": "http://everzet.com"
554 | },
555 | {
556 | "name": "Marcello Duarte",
557 | "email": "marcello.duarte@gmail.com"
558 | }
559 | ],
560 | "description": "Highly opinionated mocking framework for PHP 5.3+",
561 | "homepage": "https://github.com/phpspec/prophecy",
562 | "keywords": [
563 | "Double",
564 | "Dummy",
565 | "fake",
566 | "mock",
567 | "spy",
568 | "stub"
569 | ],
570 | "support": {
571 | "issues": "https://github.com/phpspec/prophecy/issues",
572 | "source": "https://github.com/phpspec/prophecy/tree/1.12.1"
573 | },
574 | "time": "2020-09-29T09:10:42+00:00"
575 | },
576 | {
577 | "name": "phpunit/php-code-coverage",
578 | "version": "9.2.3",
579 | "source": {
580 | "type": "git",
581 | "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
582 | "reference": "6b20e2055f7c29b56cb3870b3de7cc463d7add41"
583 | },
584 | "dist": {
585 | "type": "zip",
586 | "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6b20e2055f7c29b56cb3870b3de7cc463d7add41",
587 | "reference": "6b20e2055f7c29b56cb3870b3de7cc463d7add41",
588 | "shasum": ""
589 | },
590 | "require": {
591 | "ext-dom": "*",
592 | "ext-libxml": "*",
593 | "ext-xmlwriter": "*",
594 | "nikic/php-parser": "^4.10.2",
595 | "php": ">=7.3",
596 | "phpunit/php-file-iterator": "^3.0.3",
597 | "phpunit/php-text-template": "^2.0.2",
598 | "sebastian/code-unit-reverse-lookup": "^2.0.2",
599 | "sebastian/complexity": "^2.0",
600 | "sebastian/environment": "^5.1.2",
601 | "sebastian/lines-of-code": "^1.0",
602 | "sebastian/version": "^3.0.1",
603 | "theseer/tokenizer": "^1.2.0"
604 | },
605 | "require-dev": {
606 | "phpunit/phpunit": "^9.3"
607 | },
608 | "suggest": {
609 | "ext-pcov": "*",
610 | "ext-xdebug": "*"
611 | },
612 | "type": "library",
613 | "extra": {
614 | "branch-alias": {
615 | "dev-master": "9.2-dev"
616 | }
617 | },
618 | "autoload": {
619 | "classmap": [
620 | "src/"
621 | ]
622 | },
623 | "notification-url": "https://packagist.org/downloads/",
624 | "license": [
625 | "BSD-3-Clause"
626 | ],
627 | "authors": [
628 | {
629 | "name": "Sebastian Bergmann",
630 | "email": "sebastian@phpunit.de",
631 | "role": "lead"
632 | }
633 | ],
634 | "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
635 | "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
636 | "keywords": [
637 | "coverage",
638 | "testing",
639 | "xunit"
640 | ],
641 | "support": {
642 | "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
643 | "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.3"
644 | },
645 | "funding": [
646 | {
647 | "url": "https://github.com/sebastianbergmann",
648 | "type": "github"
649 | }
650 | ],
651 | "time": "2020-10-30T10:46:41+00:00"
652 | },
653 | {
654 | "name": "phpunit/php-file-iterator",
655 | "version": "3.0.5",
656 | "source": {
657 | "type": "git",
658 | "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
659 | "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8"
660 | },
661 | "dist": {
662 | "type": "zip",
663 | "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8",
664 | "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8",
665 | "shasum": ""
666 | },
667 | "require": {
668 | "php": ">=7.3"
669 | },
670 | "require-dev": {
671 | "phpunit/phpunit": "^9.3"
672 | },
673 | "type": "library",
674 | "extra": {
675 | "branch-alias": {
676 | "dev-master": "3.0-dev"
677 | }
678 | },
679 | "autoload": {
680 | "classmap": [
681 | "src/"
682 | ]
683 | },
684 | "notification-url": "https://packagist.org/downloads/",
685 | "license": [
686 | "BSD-3-Clause"
687 | ],
688 | "authors": [
689 | {
690 | "name": "Sebastian Bergmann",
691 | "email": "sebastian@phpunit.de",
692 | "role": "lead"
693 | }
694 | ],
695 | "description": "FilterIterator implementation that filters files based on a list of suffixes.",
696 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
697 | "keywords": [
698 | "filesystem",
699 | "iterator"
700 | ],
701 | "support": {
702 | "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
703 | "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
704 | },
705 | "funding": [
706 | {
707 | "url": "https://github.com/sebastianbergmann",
708 | "type": "github"
709 | }
710 | ],
711 | "time": "2020-09-28T05:57:25+00:00"
712 | },
713 | {
714 | "name": "phpunit/php-invoker",
715 | "version": "3.1.1",
716 | "source": {
717 | "type": "git",
718 | "url": "https://github.com/sebastianbergmann/php-invoker.git",
719 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
720 | },
721 | "dist": {
722 | "type": "zip",
723 | "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
724 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
725 | "shasum": ""
726 | },
727 | "require": {
728 | "php": ">=7.3"
729 | },
730 | "require-dev": {
731 | "ext-pcntl": "*",
732 | "phpunit/phpunit": "^9.3"
733 | },
734 | "suggest": {
735 | "ext-pcntl": "*"
736 | },
737 | "type": "library",
738 | "extra": {
739 | "branch-alias": {
740 | "dev-master": "3.1-dev"
741 | }
742 | },
743 | "autoload": {
744 | "classmap": [
745 | "src/"
746 | ]
747 | },
748 | "notification-url": "https://packagist.org/downloads/",
749 | "license": [
750 | "BSD-3-Clause"
751 | ],
752 | "authors": [
753 | {
754 | "name": "Sebastian Bergmann",
755 | "email": "sebastian@phpunit.de",
756 | "role": "lead"
757 | }
758 | ],
759 | "description": "Invoke callables with a timeout",
760 | "homepage": "https://github.com/sebastianbergmann/php-invoker/",
761 | "keywords": [
762 | "process"
763 | ],
764 | "support": {
765 | "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
766 | "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
767 | },
768 | "funding": [
769 | {
770 | "url": "https://github.com/sebastianbergmann",
771 | "type": "github"
772 | }
773 | ],
774 | "time": "2020-09-28T05:58:55+00:00"
775 | },
776 | {
777 | "name": "phpunit/php-text-template",
778 | "version": "2.0.4",
779 | "source": {
780 | "type": "git",
781 | "url": "https://github.com/sebastianbergmann/php-text-template.git",
782 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
783 | },
784 | "dist": {
785 | "type": "zip",
786 | "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
787 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
788 | "shasum": ""
789 | },
790 | "require": {
791 | "php": ">=7.3"
792 | },
793 | "require-dev": {
794 | "phpunit/phpunit": "^9.3"
795 | },
796 | "type": "library",
797 | "extra": {
798 | "branch-alias": {
799 | "dev-master": "2.0-dev"
800 | }
801 | },
802 | "autoload": {
803 | "classmap": [
804 | "src/"
805 | ]
806 | },
807 | "notification-url": "https://packagist.org/downloads/",
808 | "license": [
809 | "BSD-3-Clause"
810 | ],
811 | "authors": [
812 | {
813 | "name": "Sebastian Bergmann",
814 | "email": "sebastian@phpunit.de",
815 | "role": "lead"
816 | }
817 | ],
818 | "description": "Simple template engine.",
819 | "homepage": "https://github.com/sebastianbergmann/php-text-template/",
820 | "keywords": [
821 | "template"
822 | ],
823 | "support": {
824 | "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
825 | "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
826 | },
827 | "funding": [
828 | {
829 | "url": "https://github.com/sebastianbergmann",
830 | "type": "github"
831 | }
832 | ],
833 | "time": "2020-10-26T05:33:50+00:00"
834 | },
835 | {
836 | "name": "phpunit/php-timer",
837 | "version": "5.0.3",
838 | "source": {
839 | "type": "git",
840 | "url": "https://github.com/sebastianbergmann/php-timer.git",
841 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
842 | },
843 | "dist": {
844 | "type": "zip",
845 | "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
846 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
847 | "shasum": ""
848 | },
849 | "require": {
850 | "php": ">=7.3"
851 | },
852 | "require-dev": {
853 | "phpunit/phpunit": "^9.3"
854 | },
855 | "type": "library",
856 | "extra": {
857 | "branch-alias": {
858 | "dev-master": "5.0-dev"
859 | }
860 | },
861 | "autoload": {
862 | "classmap": [
863 | "src/"
864 | ]
865 | },
866 | "notification-url": "https://packagist.org/downloads/",
867 | "license": [
868 | "BSD-3-Clause"
869 | ],
870 | "authors": [
871 | {
872 | "name": "Sebastian Bergmann",
873 | "email": "sebastian@phpunit.de",
874 | "role": "lead"
875 | }
876 | ],
877 | "description": "Utility class for timing",
878 | "homepage": "https://github.com/sebastianbergmann/php-timer/",
879 | "keywords": [
880 | "timer"
881 | ],
882 | "support": {
883 | "issues": "https://github.com/sebastianbergmann/php-timer/issues",
884 | "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
885 | },
886 | "funding": [
887 | {
888 | "url": "https://github.com/sebastianbergmann",
889 | "type": "github"
890 | }
891 | ],
892 | "time": "2020-10-26T13:16:10+00:00"
893 | },
894 | {
895 | "name": "phpunit/phpunit",
896 | "version": "9.4.3",
897 | "source": {
898 | "type": "git",
899 | "url": "https://github.com/sebastianbergmann/phpunit.git",
900 | "reference": "9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab"
901 | },
902 | "dist": {
903 | "type": "zip",
904 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab",
905 | "reference": "9fa359ff5ddaa5eb2be2bedb08a6a5787a5807ab",
906 | "shasum": ""
907 | },
908 | "require": {
909 | "doctrine/instantiator": "^1.3.1",
910 | "ext-dom": "*",
911 | "ext-json": "*",
912 | "ext-libxml": "*",
913 | "ext-mbstring": "*",
914 | "ext-xml": "*",
915 | "ext-xmlwriter": "*",
916 | "myclabs/deep-copy": "^1.10.1",
917 | "phar-io/manifest": "^2.0.1",
918 | "phar-io/version": "^3.0.2",
919 | "php": ">=7.3",
920 | "phpspec/prophecy": "^1.12.1",
921 | "phpunit/php-code-coverage": "^9.2",
922 | "phpunit/php-file-iterator": "^3.0.5",
923 | "phpunit/php-invoker": "^3.1.1",
924 | "phpunit/php-text-template": "^2.0.3",
925 | "phpunit/php-timer": "^5.0.2",
926 | "sebastian/cli-parser": "^1.0.1",
927 | "sebastian/code-unit": "^1.0.6",
928 | "sebastian/comparator": "^4.0.5",
929 | "sebastian/diff": "^4.0.3",
930 | "sebastian/environment": "^5.1.3",
931 | "sebastian/exporter": "^4.0.3",
932 | "sebastian/global-state": "^5.0.1",
933 | "sebastian/object-enumerator": "^4.0.3",
934 | "sebastian/resource-operations": "^3.0.3",
935 | "sebastian/type": "^2.3",
936 | "sebastian/version": "^3.0.2"
937 | },
938 | "require-dev": {
939 | "ext-pdo": "*",
940 | "phpspec/prophecy-phpunit": "^2.0.1"
941 | },
942 | "suggest": {
943 | "ext-soap": "*",
944 | "ext-xdebug": "*"
945 | },
946 | "bin": [
947 | "phpunit"
948 | ],
949 | "type": "library",
950 | "extra": {
951 | "branch-alias": {
952 | "dev-master": "9.4-dev"
953 | }
954 | },
955 | "autoload": {
956 | "classmap": [
957 | "src/"
958 | ],
959 | "files": [
960 | "src/Framework/Assert/Functions.php"
961 | ]
962 | },
963 | "notification-url": "https://packagist.org/downloads/",
964 | "license": [
965 | "BSD-3-Clause"
966 | ],
967 | "authors": [
968 | {
969 | "name": "Sebastian Bergmann",
970 | "email": "sebastian@phpunit.de",
971 | "role": "lead"
972 | }
973 | ],
974 | "description": "The PHP Unit Testing framework.",
975 | "homepage": "https://phpunit.de/",
976 | "keywords": [
977 | "phpunit",
978 | "testing",
979 | "xunit"
980 | ],
981 | "support": {
982 | "issues": "https://github.com/sebastianbergmann/phpunit/issues",
983 | "source": "https://github.com/sebastianbergmann/phpunit/tree/9.4.3"
984 | },
985 | "funding": [
986 | {
987 | "url": "https://phpunit.de/donate.html",
988 | "type": "custom"
989 | },
990 | {
991 | "url": "https://github.com/sebastianbergmann",
992 | "type": "github"
993 | }
994 | ],
995 | "time": "2020-11-10T12:53:30+00:00"
996 | },
997 | {
998 | "name": "sebastian/cli-parser",
999 | "version": "1.0.1",
1000 | "source": {
1001 | "type": "git",
1002 | "url": "https://github.com/sebastianbergmann/cli-parser.git",
1003 | "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
1004 | },
1005 | "dist": {
1006 | "type": "zip",
1007 | "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
1008 | "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
1009 | "shasum": ""
1010 | },
1011 | "require": {
1012 | "php": ">=7.3"
1013 | },
1014 | "require-dev": {
1015 | "phpunit/phpunit": "^9.3"
1016 | },
1017 | "type": "library",
1018 | "extra": {
1019 | "branch-alias": {
1020 | "dev-master": "1.0-dev"
1021 | }
1022 | },
1023 | "autoload": {
1024 | "classmap": [
1025 | "src/"
1026 | ]
1027 | },
1028 | "notification-url": "https://packagist.org/downloads/",
1029 | "license": [
1030 | "BSD-3-Clause"
1031 | ],
1032 | "authors": [
1033 | {
1034 | "name": "Sebastian Bergmann",
1035 | "email": "sebastian@phpunit.de",
1036 | "role": "lead"
1037 | }
1038 | ],
1039 | "description": "Library for parsing CLI options",
1040 | "homepage": "https://github.com/sebastianbergmann/cli-parser",
1041 | "support": {
1042 | "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
1043 | "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
1044 | },
1045 | "funding": [
1046 | {
1047 | "url": "https://github.com/sebastianbergmann",
1048 | "type": "github"
1049 | }
1050 | ],
1051 | "time": "2020-09-28T06:08:49+00:00"
1052 | },
1053 | {
1054 | "name": "sebastian/code-unit",
1055 | "version": "1.0.8",
1056 | "source": {
1057 | "type": "git",
1058 | "url": "https://github.com/sebastianbergmann/code-unit.git",
1059 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
1060 | },
1061 | "dist": {
1062 | "type": "zip",
1063 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
1064 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
1065 | "shasum": ""
1066 | },
1067 | "require": {
1068 | "php": ">=7.3"
1069 | },
1070 | "require-dev": {
1071 | "phpunit/phpunit": "^9.3"
1072 | },
1073 | "type": "library",
1074 | "extra": {
1075 | "branch-alias": {
1076 | "dev-master": "1.0-dev"
1077 | }
1078 | },
1079 | "autoload": {
1080 | "classmap": [
1081 | "src/"
1082 | ]
1083 | },
1084 | "notification-url": "https://packagist.org/downloads/",
1085 | "license": [
1086 | "BSD-3-Clause"
1087 | ],
1088 | "authors": [
1089 | {
1090 | "name": "Sebastian Bergmann",
1091 | "email": "sebastian@phpunit.de",
1092 | "role": "lead"
1093 | }
1094 | ],
1095 | "description": "Collection of value objects that represent the PHP code units",
1096 | "homepage": "https://github.com/sebastianbergmann/code-unit",
1097 | "support": {
1098 | "issues": "https://github.com/sebastianbergmann/code-unit/issues",
1099 | "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
1100 | },
1101 | "funding": [
1102 | {
1103 | "url": "https://github.com/sebastianbergmann",
1104 | "type": "github"
1105 | }
1106 | ],
1107 | "time": "2020-10-26T13:08:54+00:00"
1108 | },
1109 | {
1110 | "name": "sebastian/code-unit-reverse-lookup",
1111 | "version": "2.0.3",
1112 | "source": {
1113 | "type": "git",
1114 | "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
1115 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
1116 | },
1117 | "dist": {
1118 | "type": "zip",
1119 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
1120 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
1121 | "shasum": ""
1122 | },
1123 | "require": {
1124 | "php": ">=7.3"
1125 | },
1126 | "require-dev": {
1127 | "phpunit/phpunit": "^9.3"
1128 | },
1129 | "type": "library",
1130 | "extra": {
1131 | "branch-alias": {
1132 | "dev-master": "2.0-dev"
1133 | }
1134 | },
1135 | "autoload": {
1136 | "classmap": [
1137 | "src/"
1138 | ]
1139 | },
1140 | "notification-url": "https://packagist.org/downloads/",
1141 | "license": [
1142 | "BSD-3-Clause"
1143 | ],
1144 | "authors": [
1145 | {
1146 | "name": "Sebastian Bergmann",
1147 | "email": "sebastian@phpunit.de"
1148 | }
1149 | ],
1150 | "description": "Looks up which function or method a line of code belongs to",
1151 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
1152 | "support": {
1153 | "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
1154 | "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
1155 | },
1156 | "funding": [
1157 | {
1158 | "url": "https://github.com/sebastianbergmann",
1159 | "type": "github"
1160 | }
1161 | ],
1162 | "time": "2020-09-28T05:30:19+00:00"
1163 | },
1164 | {
1165 | "name": "sebastian/comparator",
1166 | "version": "4.0.6",
1167 | "source": {
1168 | "type": "git",
1169 | "url": "https://github.com/sebastianbergmann/comparator.git",
1170 | "reference": "55f4261989e546dc112258c7a75935a81a7ce382"
1171 | },
1172 | "dist": {
1173 | "type": "zip",
1174 | "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382",
1175 | "reference": "55f4261989e546dc112258c7a75935a81a7ce382",
1176 | "shasum": ""
1177 | },
1178 | "require": {
1179 | "php": ">=7.3",
1180 | "sebastian/diff": "^4.0",
1181 | "sebastian/exporter": "^4.0"
1182 | },
1183 | "require-dev": {
1184 | "phpunit/phpunit": "^9.3"
1185 | },
1186 | "type": "library",
1187 | "extra": {
1188 | "branch-alias": {
1189 | "dev-master": "4.0-dev"
1190 | }
1191 | },
1192 | "autoload": {
1193 | "classmap": [
1194 | "src/"
1195 | ]
1196 | },
1197 | "notification-url": "https://packagist.org/downloads/",
1198 | "license": [
1199 | "BSD-3-Clause"
1200 | ],
1201 | "authors": [
1202 | {
1203 | "name": "Sebastian Bergmann",
1204 | "email": "sebastian@phpunit.de"
1205 | },
1206 | {
1207 | "name": "Jeff Welch",
1208 | "email": "whatthejeff@gmail.com"
1209 | },
1210 | {
1211 | "name": "Volker Dusch",
1212 | "email": "github@wallbash.com"
1213 | },
1214 | {
1215 | "name": "Bernhard Schussek",
1216 | "email": "bschussek@2bepublished.at"
1217 | }
1218 | ],
1219 | "description": "Provides the functionality to compare PHP values for equality",
1220 | "homepage": "https://github.com/sebastianbergmann/comparator",
1221 | "keywords": [
1222 | "comparator",
1223 | "compare",
1224 | "equality"
1225 | ],
1226 | "support": {
1227 | "issues": "https://github.com/sebastianbergmann/comparator/issues",
1228 | "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
1229 | },
1230 | "funding": [
1231 | {
1232 | "url": "https://github.com/sebastianbergmann",
1233 | "type": "github"
1234 | }
1235 | ],
1236 | "time": "2020-10-26T15:49:45+00:00"
1237 | },
1238 | {
1239 | "name": "sebastian/complexity",
1240 | "version": "2.0.2",
1241 | "source": {
1242 | "type": "git",
1243 | "url": "https://github.com/sebastianbergmann/complexity.git",
1244 | "reference": "739b35e53379900cc9ac327b2147867b8b6efd88"
1245 | },
1246 | "dist": {
1247 | "type": "zip",
1248 | "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88",
1249 | "reference": "739b35e53379900cc9ac327b2147867b8b6efd88",
1250 | "shasum": ""
1251 | },
1252 | "require": {
1253 | "nikic/php-parser": "^4.7",
1254 | "php": ">=7.3"
1255 | },
1256 | "require-dev": {
1257 | "phpunit/phpunit": "^9.3"
1258 | },
1259 | "type": "library",
1260 | "extra": {
1261 | "branch-alias": {
1262 | "dev-master": "2.0-dev"
1263 | }
1264 | },
1265 | "autoload": {
1266 | "classmap": [
1267 | "src/"
1268 | ]
1269 | },
1270 | "notification-url": "https://packagist.org/downloads/",
1271 | "license": [
1272 | "BSD-3-Clause"
1273 | ],
1274 | "authors": [
1275 | {
1276 | "name": "Sebastian Bergmann",
1277 | "email": "sebastian@phpunit.de",
1278 | "role": "lead"
1279 | }
1280 | ],
1281 | "description": "Library for calculating the complexity of PHP code units",
1282 | "homepage": "https://github.com/sebastianbergmann/complexity",
1283 | "support": {
1284 | "issues": "https://github.com/sebastianbergmann/complexity/issues",
1285 | "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
1286 | },
1287 | "funding": [
1288 | {
1289 | "url": "https://github.com/sebastianbergmann",
1290 | "type": "github"
1291 | }
1292 | ],
1293 | "time": "2020-10-26T15:52:27+00:00"
1294 | },
1295 | {
1296 | "name": "sebastian/diff",
1297 | "version": "4.0.4",
1298 | "source": {
1299 | "type": "git",
1300 | "url": "https://github.com/sebastianbergmann/diff.git",
1301 | "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
1302 | },
1303 | "dist": {
1304 | "type": "zip",
1305 | "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
1306 | "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
1307 | "shasum": ""
1308 | },
1309 | "require": {
1310 | "php": ">=7.3"
1311 | },
1312 | "require-dev": {
1313 | "phpunit/phpunit": "^9.3",
1314 | "symfony/process": "^4.2 || ^5"
1315 | },
1316 | "type": "library",
1317 | "extra": {
1318 | "branch-alias": {
1319 | "dev-master": "4.0-dev"
1320 | }
1321 | },
1322 | "autoload": {
1323 | "classmap": [
1324 | "src/"
1325 | ]
1326 | },
1327 | "notification-url": "https://packagist.org/downloads/",
1328 | "license": [
1329 | "BSD-3-Clause"
1330 | ],
1331 | "authors": [
1332 | {
1333 | "name": "Sebastian Bergmann",
1334 | "email": "sebastian@phpunit.de"
1335 | },
1336 | {
1337 | "name": "Kore Nordmann",
1338 | "email": "mail@kore-nordmann.de"
1339 | }
1340 | ],
1341 | "description": "Diff implementation",
1342 | "homepage": "https://github.com/sebastianbergmann/diff",
1343 | "keywords": [
1344 | "diff",
1345 | "udiff",
1346 | "unidiff",
1347 | "unified diff"
1348 | ],
1349 | "support": {
1350 | "issues": "https://github.com/sebastianbergmann/diff/issues",
1351 | "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
1352 | },
1353 | "funding": [
1354 | {
1355 | "url": "https://github.com/sebastianbergmann",
1356 | "type": "github"
1357 | }
1358 | ],
1359 | "time": "2020-10-26T13:10:38+00:00"
1360 | },
1361 | {
1362 | "name": "sebastian/environment",
1363 | "version": "5.1.3",
1364 | "source": {
1365 | "type": "git",
1366 | "url": "https://github.com/sebastianbergmann/environment.git",
1367 | "reference": "388b6ced16caa751030f6a69e588299fa09200ac"
1368 | },
1369 | "dist": {
1370 | "type": "zip",
1371 | "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac",
1372 | "reference": "388b6ced16caa751030f6a69e588299fa09200ac",
1373 | "shasum": ""
1374 | },
1375 | "require": {
1376 | "php": ">=7.3"
1377 | },
1378 | "require-dev": {
1379 | "phpunit/phpunit": "^9.3"
1380 | },
1381 | "suggest": {
1382 | "ext-posix": "*"
1383 | },
1384 | "type": "library",
1385 | "extra": {
1386 | "branch-alias": {
1387 | "dev-master": "5.1-dev"
1388 | }
1389 | },
1390 | "autoload": {
1391 | "classmap": [
1392 | "src/"
1393 | ]
1394 | },
1395 | "notification-url": "https://packagist.org/downloads/",
1396 | "license": [
1397 | "BSD-3-Clause"
1398 | ],
1399 | "authors": [
1400 | {
1401 | "name": "Sebastian Bergmann",
1402 | "email": "sebastian@phpunit.de"
1403 | }
1404 | ],
1405 | "description": "Provides functionality to handle HHVM/PHP environments",
1406 | "homepage": "http://www.github.com/sebastianbergmann/environment",
1407 | "keywords": [
1408 | "Xdebug",
1409 | "environment",
1410 | "hhvm"
1411 | ],
1412 | "support": {
1413 | "issues": "https://github.com/sebastianbergmann/environment/issues",
1414 | "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
1415 | },
1416 | "funding": [
1417 | {
1418 | "url": "https://github.com/sebastianbergmann",
1419 | "type": "github"
1420 | }
1421 | ],
1422 | "time": "2020-09-28T05:52:38+00:00"
1423 | },
1424 | {
1425 | "name": "sebastian/exporter",
1426 | "version": "4.0.3",
1427 | "source": {
1428 | "type": "git",
1429 | "url": "https://github.com/sebastianbergmann/exporter.git",
1430 | "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65"
1431 | },
1432 | "dist": {
1433 | "type": "zip",
1434 | "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65",
1435 | "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65",
1436 | "shasum": ""
1437 | },
1438 | "require": {
1439 | "php": ">=7.3",
1440 | "sebastian/recursion-context": "^4.0"
1441 | },
1442 | "require-dev": {
1443 | "ext-mbstring": "*",
1444 | "phpunit/phpunit": "^9.3"
1445 | },
1446 | "type": "library",
1447 | "extra": {
1448 | "branch-alias": {
1449 | "dev-master": "4.0-dev"
1450 | }
1451 | },
1452 | "autoload": {
1453 | "classmap": [
1454 | "src/"
1455 | ]
1456 | },
1457 | "notification-url": "https://packagist.org/downloads/",
1458 | "license": [
1459 | "BSD-3-Clause"
1460 | ],
1461 | "authors": [
1462 | {
1463 | "name": "Sebastian Bergmann",
1464 | "email": "sebastian@phpunit.de"
1465 | },
1466 | {
1467 | "name": "Jeff Welch",
1468 | "email": "whatthejeff@gmail.com"
1469 | },
1470 | {
1471 | "name": "Volker Dusch",
1472 | "email": "github@wallbash.com"
1473 | },
1474 | {
1475 | "name": "Adam Harvey",
1476 | "email": "aharvey@php.net"
1477 | },
1478 | {
1479 | "name": "Bernhard Schussek",
1480 | "email": "bschussek@gmail.com"
1481 | }
1482 | ],
1483 | "description": "Provides the functionality to export PHP variables for visualization",
1484 | "homepage": "http://www.github.com/sebastianbergmann/exporter",
1485 | "keywords": [
1486 | "export",
1487 | "exporter"
1488 | ],
1489 | "support": {
1490 | "issues": "https://github.com/sebastianbergmann/exporter/issues",
1491 | "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
1492 | },
1493 | "funding": [
1494 | {
1495 | "url": "https://github.com/sebastianbergmann",
1496 | "type": "github"
1497 | }
1498 | ],
1499 | "time": "2020-09-28T05:24:23+00:00"
1500 | },
1501 | {
1502 | "name": "sebastian/global-state",
1503 | "version": "5.0.2",
1504 | "source": {
1505 | "type": "git",
1506 | "url": "https://github.com/sebastianbergmann/global-state.git",
1507 | "reference": "a90ccbddffa067b51f574dea6eb25d5680839455"
1508 | },
1509 | "dist": {
1510 | "type": "zip",
1511 | "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a90ccbddffa067b51f574dea6eb25d5680839455",
1512 | "reference": "a90ccbddffa067b51f574dea6eb25d5680839455",
1513 | "shasum": ""
1514 | },
1515 | "require": {
1516 | "php": ">=7.3",
1517 | "sebastian/object-reflector": "^2.0",
1518 | "sebastian/recursion-context": "^4.0"
1519 | },
1520 | "require-dev": {
1521 | "ext-dom": "*",
1522 | "phpunit/phpunit": "^9.3"
1523 | },
1524 | "suggest": {
1525 | "ext-uopz": "*"
1526 | },
1527 | "type": "library",
1528 | "extra": {
1529 | "branch-alias": {
1530 | "dev-master": "5.0-dev"
1531 | }
1532 | },
1533 | "autoload": {
1534 | "classmap": [
1535 | "src/"
1536 | ]
1537 | },
1538 | "notification-url": "https://packagist.org/downloads/",
1539 | "license": [
1540 | "BSD-3-Clause"
1541 | ],
1542 | "authors": [
1543 | {
1544 | "name": "Sebastian Bergmann",
1545 | "email": "sebastian@phpunit.de"
1546 | }
1547 | ],
1548 | "description": "Snapshotting of global state",
1549 | "homepage": "http://www.github.com/sebastianbergmann/global-state",
1550 | "keywords": [
1551 | "global state"
1552 | ],
1553 | "support": {
1554 | "issues": "https://github.com/sebastianbergmann/global-state/issues",
1555 | "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2"
1556 | },
1557 | "funding": [
1558 | {
1559 | "url": "https://github.com/sebastianbergmann",
1560 | "type": "github"
1561 | }
1562 | ],
1563 | "time": "2020-10-26T15:55:19+00:00"
1564 | },
1565 | {
1566 | "name": "sebastian/lines-of-code",
1567 | "version": "1.0.2",
1568 | "source": {
1569 | "type": "git",
1570 | "url": "https://github.com/sebastianbergmann/lines-of-code.git",
1571 | "reference": "acf76492a65401babcf5283296fa510782783a7a"
1572 | },
1573 | "dist": {
1574 | "type": "zip",
1575 | "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/acf76492a65401babcf5283296fa510782783a7a",
1576 | "reference": "acf76492a65401babcf5283296fa510782783a7a",
1577 | "shasum": ""
1578 | },
1579 | "require": {
1580 | "nikic/php-parser": "^4.6",
1581 | "php": ">=7.3"
1582 | },
1583 | "require-dev": {
1584 | "phpunit/phpunit": "^9.3"
1585 | },
1586 | "type": "library",
1587 | "extra": {
1588 | "branch-alias": {
1589 | "dev-master": "1.0-dev"
1590 | }
1591 | },
1592 | "autoload": {
1593 | "classmap": [
1594 | "src/"
1595 | ]
1596 | },
1597 | "notification-url": "https://packagist.org/downloads/",
1598 | "license": [
1599 | "BSD-3-Clause"
1600 | ],
1601 | "authors": [
1602 | {
1603 | "name": "Sebastian Bergmann",
1604 | "email": "sebastian@phpunit.de",
1605 | "role": "lead"
1606 | }
1607 | ],
1608 | "description": "Library for counting the lines of code in PHP source code",
1609 | "homepage": "https://github.com/sebastianbergmann/lines-of-code",
1610 | "support": {
1611 | "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
1612 | "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.2"
1613 | },
1614 | "funding": [
1615 | {
1616 | "url": "https://github.com/sebastianbergmann",
1617 | "type": "github"
1618 | }
1619 | ],
1620 | "time": "2020-10-26T17:03:56+00:00"
1621 | },
1622 | {
1623 | "name": "sebastian/object-enumerator",
1624 | "version": "4.0.4",
1625 | "source": {
1626 | "type": "git",
1627 | "url": "https://github.com/sebastianbergmann/object-enumerator.git",
1628 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
1629 | },
1630 | "dist": {
1631 | "type": "zip",
1632 | "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
1633 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
1634 | "shasum": ""
1635 | },
1636 | "require": {
1637 | "php": ">=7.3",
1638 | "sebastian/object-reflector": "^2.0",
1639 | "sebastian/recursion-context": "^4.0"
1640 | },
1641 | "require-dev": {
1642 | "phpunit/phpunit": "^9.3"
1643 | },
1644 | "type": "library",
1645 | "extra": {
1646 | "branch-alias": {
1647 | "dev-master": "4.0-dev"
1648 | }
1649 | },
1650 | "autoload": {
1651 | "classmap": [
1652 | "src/"
1653 | ]
1654 | },
1655 | "notification-url": "https://packagist.org/downloads/",
1656 | "license": [
1657 | "BSD-3-Clause"
1658 | ],
1659 | "authors": [
1660 | {
1661 | "name": "Sebastian Bergmann",
1662 | "email": "sebastian@phpunit.de"
1663 | }
1664 | ],
1665 | "description": "Traverses array structures and object graphs to enumerate all referenced objects",
1666 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
1667 | "support": {
1668 | "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
1669 | "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
1670 | },
1671 | "funding": [
1672 | {
1673 | "url": "https://github.com/sebastianbergmann",
1674 | "type": "github"
1675 | }
1676 | ],
1677 | "time": "2020-10-26T13:12:34+00:00"
1678 | },
1679 | {
1680 | "name": "sebastian/object-reflector",
1681 | "version": "2.0.4",
1682 | "source": {
1683 | "type": "git",
1684 | "url": "https://github.com/sebastianbergmann/object-reflector.git",
1685 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
1686 | },
1687 | "dist": {
1688 | "type": "zip",
1689 | "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
1690 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
1691 | "shasum": ""
1692 | },
1693 | "require": {
1694 | "php": ">=7.3"
1695 | },
1696 | "require-dev": {
1697 | "phpunit/phpunit": "^9.3"
1698 | },
1699 | "type": "library",
1700 | "extra": {
1701 | "branch-alias": {
1702 | "dev-master": "2.0-dev"
1703 | }
1704 | },
1705 | "autoload": {
1706 | "classmap": [
1707 | "src/"
1708 | ]
1709 | },
1710 | "notification-url": "https://packagist.org/downloads/",
1711 | "license": [
1712 | "BSD-3-Clause"
1713 | ],
1714 | "authors": [
1715 | {
1716 | "name": "Sebastian Bergmann",
1717 | "email": "sebastian@phpunit.de"
1718 | }
1719 | ],
1720 | "description": "Allows reflection of object attributes, including inherited and non-public ones",
1721 | "homepage": "https://github.com/sebastianbergmann/object-reflector/",
1722 | "support": {
1723 | "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
1724 | "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
1725 | },
1726 | "funding": [
1727 | {
1728 | "url": "https://github.com/sebastianbergmann",
1729 | "type": "github"
1730 | }
1731 | ],
1732 | "time": "2020-10-26T13:14:26+00:00"
1733 | },
1734 | {
1735 | "name": "sebastian/recursion-context",
1736 | "version": "4.0.4",
1737 | "source": {
1738 | "type": "git",
1739 | "url": "https://github.com/sebastianbergmann/recursion-context.git",
1740 | "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
1741 | },
1742 | "dist": {
1743 | "type": "zip",
1744 | "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
1745 | "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
1746 | "shasum": ""
1747 | },
1748 | "require": {
1749 | "php": ">=7.3"
1750 | },
1751 | "require-dev": {
1752 | "phpunit/phpunit": "^9.3"
1753 | },
1754 | "type": "library",
1755 | "extra": {
1756 | "branch-alias": {
1757 | "dev-master": "4.0-dev"
1758 | }
1759 | },
1760 | "autoload": {
1761 | "classmap": [
1762 | "src/"
1763 | ]
1764 | },
1765 | "notification-url": "https://packagist.org/downloads/",
1766 | "license": [
1767 | "BSD-3-Clause"
1768 | ],
1769 | "authors": [
1770 | {
1771 | "name": "Sebastian Bergmann",
1772 | "email": "sebastian@phpunit.de"
1773 | },
1774 | {
1775 | "name": "Jeff Welch",
1776 | "email": "whatthejeff@gmail.com"
1777 | },
1778 | {
1779 | "name": "Adam Harvey",
1780 | "email": "aharvey@php.net"
1781 | }
1782 | ],
1783 | "description": "Provides functionality to recursively process PHP variables",
1784 | "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
1785 | "support": {
1786 | "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
1787 | "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
1788 | },
1789 | "funding": [
1790 | {
1791 | "url": "https://github.com/sebastianbergmann",
1792 | "type": "github"
1793 | }
1794 | ],
1795 | "time": "2020-10-26T13:17:30+00:00"
1796 | },
1797 | {
1798 | "name": "sebastian/resource-operations",
1799 | "version": "3.0.3",
1800 | "source": {
1801 | "type": "git",
1802 | "url": "https://github.com/sebastianbergmann/resource-operations.git",
1803 | "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
1804 | },
1805 | "dist": {
1806 | "type": "zip",
1807 | "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
1808 | "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
1809 | "shasum": ""
1810 | },
1811 | "require": {
1812 | "php": ">=7.3"
1813 | },
1814 | "require-dev": {
1815 | "phpunit/phpunit": "^9.0"
1816 | },
1817 | "type": "library",
1818 | "extra": {
1819 | "branch-alias": {
1820 | "dev-master": "3.0-dev"
1821 | }
1822 | },
1823 | "autoload": {
1824 | "classmap": [
1825 | "src/"
1826 | ]
1827 | },
1828 | "notification-url": "https://packagist.org/downloads/",
1829 | "license": [
1830 | "BSD-3-Clause"
1831 | ],
1832 | "authors": [
1833 | {
1834 | "name": "Sebastian Bergmann",
1835 | "email": "sebastian@phpunit.de"
1836 | }
1837 | ],
1838 | "description": "Provides a list of PHP built-in functions that operate on resources",
1839 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
1840 | "support": {
1841 | "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
1842 | "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
1843 | },
1844 | "funding": [
1845 | {
1846 | "url": "https://github.com/sebastianbergmann",
1847 | "type": "github"
1848 | }
1849 | ],
1850 | "time": "2020-09-28T06:45:17+00:00"
1851 | },
1852 | {
1853 | "name": "sebastian/type",
1854 | "version": "2.3.1",
1855 | "source": {
1856 | "type": "git",
1857 | "url": "https://github.com/sebastianbergmann/type.git",
1858 | "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2"
1859 | },
1860 | "dist": {
1861 | "type": "zip",
1862 | "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
1863 | "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
1864 | "shasum": ""
1865 | },
1866 | "require": {
1867 | "php": ">=7.3"
1868 | },
1869 | "require-dev": {
1870 | "phpunit/phpunit": "^9.3"
1871 | },
1872 | "type": "library",
1873 | "extra": {
1874 | "branch-alias": {
1875 | "dev-master": "2.3-dev"
1876 | }
1877 | },
1878 | "autoload": {
1879 | "classmap": [
1880 | "src/"
1881 | ]
1882 | },
1883 | "notification-url": "https://packagist.org/downloads/",
1884 | "license": [
1885 | "BSD-3-Clause"
1886 | ],
1887 | "authors": [
1888 | {
1889 | "name": "Sebastian Bergmann",
1890 | "email": "sebastian@phpunit.de",
1891 | "role": "lead"
1892 | }
1893 | ],
1894 | "description": "Collection of value objects that represent the types of the PHP type system",
1895 | "homepage": "https://github.com/sebastianbergmann/type",
1896 | "support": {
1897 | "issues": "https://github.com/sebastianbergmann/type/issues",
1898 | "source": "https://github.com/sebastianbergmann/type/tree/2.3.1"
1899 | },
1900 | "funding": [
1901 | {
1902 | "url": "https://github.com/sebastianbergmann",
1903 | "type": "github"
1904 | }
1905 | ],
1906 | "time": "2020-10-26T13:18:59+00:00"
1907 | },
1908 | {
1909 | "name": "sebastian/version",
1910 | "version": "3.0.2",
1911 | "source": {
1912 | "type": "git",
1913 | "url": "https://github.com/sebastianbergmann/version.git",
1914 | "reference": "c6c1022351a901512170118436c764e473f6de8c"
1915 | },
1916 | "dist": {
1917 | "type": "zip",
1918 | "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
1919 | "reference": "c6c1022351a901512170118436c764e473f6de8c",
1920 | "shasum": ""
1921 | },
1922 | "require": {
1923 | "php": ">=7.3"
1924 | },
1925 | "type": "library",
1926 | "extra": {
1927 | "branch-alias": {
1928 | "dev-master": "3.0-dev"
1929 | }
1930 | },
1931 | "autoload": {
1932 | "classmap": [
1933 | "src/"
1934 | ]
1935 | },
1936 | "notification-url": "https://packagist.org/downloads/",
1937 | "license": [
1938 | "BSD-3-Clause"
1939 | ],
1940 | "authors": [
1941 | {
1942 | "name": "Sebastian Bergmann",
1943 | "email": "sebastian@phpunit.de",
1944 | "role": "lead"
1945 | }
1946 | ],
1947 | "description": "Library that helps with managing the version number of Git-hosted PHP projects",
1948 | "homepage": "https://github.com/sebastianbergmann/version",
1949 | "support": {
1950 | "issues": "https://github.com/sebastianbergmann/version/issues",
1951 | "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
1952 | },
1953 | "funding": [
1954 | {
1955 | "url": "https://github.com/sebastianbergmann",
1956 | "type": "github"
1957 | }
1958 | ],
1959 | "time": "2020-09-28T06:39:44+00:00"
1960 | },
1961 | {
1962 | "name": "symfony/polyfill-ctype",
1963 | "version": "v1.20.0",
1964 | "source": {
1965 | "type": "git",
1966 | "url": "https://github.com/symfony/polyfill-ctype.git",
1967 | "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41"
1968 | },
1969 | "dist": {
1970 | "type": "zip",
1971 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41",
1972 | "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41",
1973 | "shasum": ""
1974 | },
1975 | "require": {
1976 | "php": ">=7.1"
1977 | },
1978 | "suggest": {
1979 | "ext-ctype": "For best performance"
1980 | },
1981 | "type": "library",
1982 | "extra": {
1983 | "branch-alias": {
1984 | "dev-main": "1.20-dev"
1985 | },
1986 | "thanks": {
1987 | "name": "symfony/polyfill",
1988 | "url": "https://github.com/symfony/polyfill"
1989 | }
1990 | },
1991 | "autoload": {
1992 | "psr-4": {
1993 | "Symfony\\Polyfill\\Ctype\\": ""
1994 | },
1995 | "files": [
1996 | "bootstrap.php"
1997 | ]
1998 | },
1999 | "notification-url": "https://packagist.org/downloads/",
2000 | "license": [
2001 | "MIT"
2002 | ],
2003 | "authors": [
2004 | {
2005 | "name": "Gert de Pagter",
2006 | "email": "BackEndTea@gmail.com"
2007 | },
2008 | {
2009 | "name": "Symfony Community",
2010 | "homepage": "https://symfony.com/contributors"
2011 | }
2012 | ],
2013 | "description": "Symfony polyfill for ctype functions",
2014 | "homepage": "https://symfony.com",
2015 | "keywords": [
2016 | "compatibility",
2017 | "ctype",
2018 | "polyfill",
2019 | "portable"
2020 | ],
2021 | "support": {
2022 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0"
2023 | },
2024 | "funding": [
2025 | {
2026 | "url": "https://symfony.com/sponsor",
2027 | "type": "custom"
2028 | },
2029 | {
2030 | "url": "https://github.com/fabpot",
2031 | "type": "github"
2032 | },
2033 | {
2034 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
2035 | "type": "tidelift"
2036 | }
2037 | ],
2038 | "time": "2020-10-23T14:02:19+00:00"
2039 | },
2040 | {
2041 | "name": "theseer/tokenizer",
2042 | "version": "1.2.0",
2043 | "source": {
2044 | "type": "git",
2045 | "url": "https://github.com/theseer/tokenizer.git",
2046 | "reference": "75a63c33a8577608444246075ea0af0d052e452a"
2047 | },
2048 | "dist": {
2049 | "type": "zip",
2050 | "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
2051 | "reference": "75a63c33a8577608444246075ea0af0d052e452a",
2052 | "shasum": ""
2053 | },
2054 | "require": {
2055 | "ext-dom": "*",
2056 | "ext-tokenizer": "*",
2057 | "ext-xmlwriter": "*",
2058 | "php": "^7.2 || ^8.0"
2059 | },
2060 | "type": "library",
2061 | "autoload": {
2062 | "classmap": [
2063 | "src/"
2064 | ]
2065 | },
2066 | "notification-url": "https://packagist.org/downloads/",
2067 | "license": [
2068 | "BSD-3-Clause"
2069 | ],
2070 | "authors": [
2071 | {
2072 | "name": "Arne Blankerts",
2073 | "email": "arne@blankerts.de",
2074 | "role": "Developer"
2075 | }
2076 | ],
2077 | "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
2078 | "support": {
2079 | "issues": "https://github.com/theseer/tokenizer/issues",
2080 | "source": "https://github.com/theseer/tokenizer/tree/master"
2081 | },
2082 | "funding": [
2083 | {
2084 | "url": "https://github.com/theseer",
2085 | "type": "github"
2086 | }
2087 | ],
2088 | "time": "2020-07-12T23:59:07+00:00"
2089 | },
2090 | {
2091 | "name": "webmozart/assert",
2092 | "version": "1.9.1",
2093 | "source": {
2094 | "type": "git",
2095 | "url": "https://github.com/webmozart/assert.git",
2096 | "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
2097 | },
2098 | "dist": {
2099 | "type": "zip",
2100 | "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
2101 | "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
2102 | "shasum": ""
2103 | },
2104 | "require": {
2105 | "php": "^5.3.3 || ^7.0 || ^8.0",
2106 | "symfony/polyfill-ctype": "^1.8"
2107 | },
2108 | "conflict": {
2109 | "phpstan/phpstan": "<0.12.20",
2110 | "vimeo/psalm": "<3.9.1"
2111 | },
2112 | "require-dev": {
2113 | "phpunit/phpunit": "^4.8.36 || ^7.5.13"
2114 | },
2115 | "type": "library",
2116 | "autoload": {
2117 | "psr-4": {
2118 | "Webmozart\\Assert\\": "src/"
2119 | }
2120 | },
2121 | "notification-url": "https://packagist.org/downloads/",
2122 | "license": [
2123 | "MIT"
2124 | ],
2125 | "authors": [
2126 | {
2127 | "name": "Bernhard Schussek",
2128 | "email": "bschussek@gmail.com"
2129 | }
2130 | ],
2131 | "description": "Assertions to validate method input/output with nice error messages.",
2132 | "keywords": [
2133 | "assert",
2134 | "check",
2135 | "validate"
2136 | ],
2137 | "support": {
2138 | "issues": "https://github.com/webmozart/assert/issues",
2139 | "source": "https://github.com/webmozart/assert/tree/master"
2140 | },
2141 | "time": "2020-07-08T17:02:28+00:00"
2142 | }
2143 | ],
2144 | "aliases": [],
2145 | "minimum-stability": "stable",
2146 | "stability-flags": [],
2147 | "prefer-stable": false,
2148 | "prefer-lowest": false,
2149 | "platform": {
2150 | "php": ">=7.3"
2151 | },
2152 | "platform-dev": [],
2153 | "plugin-api-version": "2.0.0"
2154 | }
2155 |
--------------------------------------------------------------------------------