repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/enum_version_resource_type.php
template/versions/core/enum_version_resource_type.php
<?php declare(strict_types=1); /* * Copyright 2024-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/interface_version_resource_type.php
template/versions/core/interface_version_resource_type.php
<?php declare(strict_types=1); /* * Copyright 2018-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/class_version_constants.php
template/versions/core/class_version_constants.php
<?php declare(strict_types=1); /* * Copyright 2024-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/class_autoloader.php
template/versions/core/class_autoloader.php
<?php declare(strict_types=1); /* * Copyright 2018-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/interface_version_contained_type.php
template/versions/core/interface_version_contained_type.php
<?php declare(strict_types=1); /* * Copyright 2018-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/class_version_client.php
template/versions/core/class_version_client.php
<?php declare(strict_types=1); /* * Copyright 2018-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
dcarbone/php-fhir
https://github.com/dcarbone/php-fhir/blob/ca3208a0169c9fbb59484b48b49cf32ed6b6635a/template/versions/core/class_version_type_map.php
template/versions/core/class_version_type_map.php
<?php declare(strict_types=1); /* * Copyright 2018-2025 Daniel Carbone (daniel.p.carbone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
php
Apache-2.0
ca3208a0169c9fbb59484b48b49cf32ed6b6635a
2026-01-05T04:30:39.805178Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = PhpCsFixer\Finder::create() ->exclude('vendor') ->in(__DIR__) ; $config = new PhpCsFixer\Config(); return $config->setRules([ '@PSR2' => true, 'array_syntax' => ['syntax' => 'short'], ]) ->setFinder($finder) ;
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/integration/CollectionTest.php
tests/integration/CollectionTest.php
<?php namespace GetStream\Integration; use GetStream\Stream\Client; use GetStream\Stream\Feed; use GuzzleHttp\Exception\ClientException; class CollectionTest extends TestBase { /** * @var Client */ protected $client; /** * @var Feed */ protected $user1; /** * @var Feed ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/integration/UsersTest.php
tests/integration/UsersTest.php
<?php namespace GetStream\Integration; use GetStream\Stream\Client; use GetStream\Stream\Feed; class UsersTest extends TestBase { /** * @var Client */ protected $client; /** * @var Feed */ protected $user1; /** * @var Feed */ protected $user2; /** * @...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/integration/FeedTest.php
tests/integration/FeedTest.php
<?php namespace GetStream\Integration; use DateTime; use DateTimeZone; use Firebase\JWT\JWT; use Firebase\JWT\Key; use GetStream\Stream\Client; use GetStream\Stream\Feed; class FeedTest extends TestBase { /** * @var Client */ protected $client; /** * @var Feed */ protected $user1...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
true
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/integration/TestBase.php
tests/integration/TestBase.php
<?php namespace GetStream\Integration; use PHPUnit\Framework\TestCase; class TestBase extends TestCase { protected function generateGuid() { return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)); } }
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/integration/ReactionTest.php
tests/integration/ReactionTest.php
<?php namespace GetStream\Integration; use GetStream\Stream\Client; use GetStream\Stream\Feed; class ReactionTest extends TestBase { /** * @var Client */ protected $client; /** * @var Feed */ protected $user1; /** * @var Feed */ protected $user2; /** ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/unit/ClientTest.php
tests/unit/ClientTest.php
<?php namespace GetStream\Unit; use GetStream\Stream\Client; use PHPUnit\Framework\TestCase; class ClientTest extends TestCase { public function testClientSetProtocol() { if (!str_contains(getenv('STREAM_BASE_URL'), 'localhost')) { $client = new Client('key', 'secret'); $clien...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/unit/BaseFeedTest.php
tests/unit/BaseFeedTest.php
<?php namespace GetStream\Unit; use GetStream\Stream\Client; use GetStream\Stubs\BaseFeedStub; use PHPUnit\Framework\TestCase; class BaseFeedTest extends TestCase { public function testClientFeedAddActivity() { $client = $this->createClientMock(); $feed = new BaseFeedStub($client, 'feed', '1'...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/tests/stubs/BaseFeedStub.php
tests/stubs/BaseFeedStub.php
<?php namespace GetStream\Stubs; use GetStream\Stream\BaseFeed; class BaseFeedStub extends BaseFeed { public function makeHttpRequest($uri, $method, $data = [], $query_params = [], $resource = '', $action = '') { return [ 'uri' => $uri, 'method' => $method, 'data' ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/.phan/config.php
.phan/config.php
<?php /** * This configuration will be read and overlaid on top of the * default configuration. Command-line arguments will be applied * after this file is read. */ return [ // Supported values: `'5.6'`, `'7.0'`, `'7.1'`, `'7.2'`, `'7.3'`, // `'7.4'`, `null`. // If this is set to `null`, // then Ph...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Util.php
lib/GetStream/Stream/Util.php
<?php namespace GetStream\Stream; use Firebase\JWT\JWT; use GuzzleHttp\HandlerStack; use Psr\Http\Message\RequestInterface; class Util { /** * @param ClientInterface $streamClient * @param string $apiKey * @param string $apiSecret * @param string $resource * @return HandlerStack */ ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/ActivitiesOperation.php
lib/GetStream/Stream/ActivitiesOperation.php
<?php namespace GetStream\Stream; class ActivitiesOperation extends Feed { /** * @var string */ protected $token; /** * @param ClientInterface $client * @param string $api_key * @param string $token */ public function __construct(ClientInterface $client, $api_key, $token...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Users.php
lib/GetStream/Stream/Users.php
<?php namespace GetStream\Stream; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; class Users { /** * @var GuzzleClient */ private $client; /** * @var string */ private $apiKey; /** * @var string */ private $apiSecret; /** ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Client.php
lib/GetStream/Stream/Client.php
<?php namespace GetStream\Stream; use DateTime; use Exception; use GuzzleHttp\HandlerStack; class Client implements ClientInterface { const API_ENDPOINT = 'stream-io-api.com/api'; /** * @var string */ protected $api_key; /** * @var string */ protected $api_secret; /** ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Batcher.php
lib/GetStream/Stream/Batcher.php
<?php namespace GetStream\Stream; use GuzzleHttp\HandlerStack; use Psr\Http\Message\RequestInterface; class Batcher extends Feed { /** * @var Signer */ private $signer; /** * @param ClientInterface $client * @param Signer $signer * @param string $api_key */ public functi...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Analytics.php
lib/GetStream/Stream/Analytics.php
<?php namespace GetStream\Stream; class Analytics extends Feed { const API_ENDPOINT = 'https://analytics.stream-io-api.com/analytics/'; /** * @var string */ protected $token; /** * @param ClientInterface $client * @param string $api_key * @param string $token */ pu...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/StreamFeedException.php
lib/GetStream/Stream/StreamFeedException.php
<?php namespace GetStream\Stream; use GuzzleHttp\Exception\ClientException; class StreamFeedException extends \Exception { private function getRateLimitValue($headerName) { /* Sample headers x-ratelimit-limit: 2000 x-ratelimit-remaining: 1998 x-ratelimit-reset: 154360...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/BaseFeedInterface.php
lib/GetStream/Stream/BaseFeedInterface.php
<?php namespace GetStream\Stream; interface BaseFeedInterface { /** * @param string $feed_slug * * @return bool */ public function validFeedSlug($feed_slug); /** * @param string $user_id * * @return bool */ public function validUserId($user_id); /** *...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Constant.php
lib/GetStream/Stream/Constant.php
<?php namespace GetStream\Stream; class Constant { const VERSION = '7.1.0'; }
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/FeedInterface.php
lib/GetStream/Stream/FeedInterface.php
<?php namespace GetStream\Stream; interface FeedInterface extends BaseFeedInterface { /** * @return \GuzzleHttp\HandlerStack */ public function getHandlerStack(); /** * @return \GuzzleHttp\Client */ public function getHttpClient(); public function setGuzzleDefaultOption($opti...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Feed.php
lib/GetStream/Stream/Feed.php
<?php namespace GetStream\Stream; class Feed extends BaseFeed implements FeedInterface { }
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/ClientInterface.php
lib/GetStream/Stream/ClientInterface.php
<?php namespace GetStream\Stream; use GuzzleHttp\HandlerStack; /** * @property string $timeout * @property string $api_version */ interface ClientInterface { /** * @param string $protocol */ public function setProtocol($protocol); /** * @param string $location */ public functi...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Activities.php
lib/GetStream/Stream/Activities.php
<?php namespace GetStream\Stream; class Activities extends Feed { /** * @var string */ protected $token; /** * @param ClientInterface $client * @param string $api_key * @param string $token */ public function __construct(ClientInterface $client, $api_key, $token) { ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Collections.php
lib/GetStream/Stream/Collections.php
<?php namespace GetStream\Stream; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; class Collections { /** * @var GuzzleClient */ private $client; /** * @var string */ private $apiKey; /** * @var string */ private $apiSecret; ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/BaseFeed.php
lib/GetStream/Stream/BaseFeed.php
<?php namespace GetStream\Stream; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Uri; class BaseFeed implements BaseFeedInterface { /** * @var array */ protected $guzzleOptions = []; /** * @var array */ ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Personalization.php
lib/GetStream/Stream/Personalization.php
<?php namespace GetStream\Stream; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; class Personalization { const API_ENDPOINT = 'https://personalization.stream-io-api.com/personalization/v1.0/'; /** * @var GuzzleClient */ private $client; /** * @var st...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Signer.php
lib/GetStream/Stream/Signer.php
<?php namespace GetStream\Stream; use Firebase\JWT\JWT; use Psr\Http\Message\RequestInterface; class Signer { /** * @var string */ private $api_key; /** * @var string */ private $api_secret; /** * @param string $api_key * @param string $api_secret */ publi...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/StreamWrongInputException.php
lib/GetStream/Stream/StreamWrongInputException.php
<?php namespace GetStream\Stream; class StreamWrongInputException extends \Exception { }
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
GetStream/stream-php
https://github.com/GetStream/stream-php/blob/f82830288033d84be6113e82e324f446ab998b62/lib/GetStream/Stream/Reactions.php
lib/GetStream/Stream/Reactions.php
<?php namespace GetStream\Stream; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\ClientException; class Reactions { /** * @var GuzzleClient */ private $client; /** * @var string */ private $apiKey; /** * @var string */ private $apiSecret; ...
php
BSD-3-Clause
f82830288033d84be6113e82e324f446ab998b62
2026-01-05T04:30:47.691285Z
false
nmalcolm/ipcamshell
https://github.com/nmalcolm/ipcamshell/blob/8ae97d8758142d9bc4153584479523e3216ec5a4/ipcs.php
ipcs.php
<?php ini_set('default_socket_timeout', 5); $options = getopt('u:c:g:'); if(!isset($options['u'])) { die("Option -u not set!\n"); } // Run a initial check to make sure the camera is vulnerable echo ''; $request = request('whoami', 1); if($request['body'] != 'root' && $request['status'] != 'HTTP/1.1 200 OK') { ...
php
MIT
8ae97d8758142d9bc4153584479523e3216ec5a4
2026-01-05T04:31:02.006932Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/MultiTask.php
src/MultiTask.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer; class MultiTask implements \Countable { private const STATUS_PREPARING = 0; pr...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Archer.php
src/Archer.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib; abstract class Archer { /** * 投递一个Task进入队列异步执行,该方法立即返回 * 注意1:若Task抛出了任何\Throwab...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/TimerHeap.php
src/TimerHeap.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer; class TimerHeap extends \SplHeap { private static $instance; private $task_map...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Queue.php
src/Queue.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer; class Queue { private static $instance; private static $size = 8192; priva...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task.php
src/Task.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer; abstract class Task { protected static $finish_func; protected $task_callback;...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Exception/AddNewTaskFailException.php
src/Exception/AddNewTaskFailException.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Exception; class AddNewTaskFailException extends \Exception { public function __con...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Exception/TaskTimeoutException.php
src/Exception/TaskTimeoutException.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Exception; class TaskTimeoutException extends \Exception { public function __constr...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Exception/RuntimeException.php
src/Exception/RuntimeException.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Exception; class RuntimeException extends \RuntimeException { }
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Co.php
src/Task/Co.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task; class Co extends \Swlib\Archer\Task { protected $result_receiver; public...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Defer.php
src/Task/Defer.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task; class Defer extends \Swlib\Archer\Task { protected $result_receiver; pub...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/CoPackUnit.php
src/Task/CoPackUnit.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task; class CoPackUnit extends \Swlib\Archer\Task { protected $multi_task; pub...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Timer.php
src/Task/Timer.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task; abstract class Timer extends \Swlib\Archer\Task { public $execute_timestamp; ...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Async.php
src/Task/Async.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task; class Async extends \Swlib\Archer\Task { private $finish_callback; publi...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Timer/Once.php
src/Task/Timer/Once.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task\Timer; class Once extends \Swlib\Archer\Task\Timer { public function __constru...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
swlib/archer
https://github.com/swlib/archer/blob/8d2c6b238ab1e4be4a69ce3cc53d4f33824760af/src/Task/Timer/Tick.php
src/Task/Timer/Tick.php
<?php /* * This file is part of Swlib\Archer. * * (c) fdream <fdream@brae.co> * * This source file is subject to the APACHE 2.0 license that is bundled * with this source code in the file LICENSE. */ namespace Swlib\Archer\Task\Timer; class Tick extends \Swlib\Archer\Task\Timer { protected $tick_length; ...
php
Apache-2.0
8d2c6b238ab1e4be4a69ce3cc53d4f33824760af
2026-01-05T04:31:15.566338Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/Uncategorized/Currying/Currying.php
src/Whizark/Uncategorized/Currying/Currying.php
<?php namespace Whizark\Uncategorized\Currying; /** * Calculate the sum of three numbers. * * @param int $x * @param int $y * @param int $z * @return int */ function sum($x, $y, $z) { return $x + $y + $z; } /** * A curried function factory. * * @param int $x * @return callable */ function curriedSum($...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/Uncategorized/PartialApplication/PartialApplication.php
src/Whizark/Uncategorized/PartialApplication/PartialApplication.php
<?php namespace Whizark\Uncategorized\PartialApplication; /** * Add two numbers. * * @param int $x * @param int $y * @return int */ function add($x, $y) { return $x + $y; } /** * A function factory for partial application. * * @param int $x * @return callable */ function makeAdder($x) { return func...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/Uncategorized/AutomaticPartialApplication/AutomaticPartialApplication.php
src/Whizark/Uncategorized/AutomaticPartialApplication/AutomaticPartialApplication.php
<?php namespace Whizark\Uncategorized\AutomaticPartialApplication; /** * Calculate the sum of three numbers. * * @param int $x * @param int $y * @param int $z * @return int */ function sum($x, $y, $z) { return $x + $y + $z; } /** * A function factory for partial application. * * @param callable $functio...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/Uncategorized/Memoization/Memoization.php
src/Whizark/Uncategorized/Memoization/Memoization.php
<?php namespace Whizark\Uncategorized\Memoization; /** * A memoized function. * * @param mixed $arg1 * @return mixed */ function memoizedFunction($arg1 /* , ... */) { static $cache = []; $args = func_get_args(); $key = sha1(serialize($args)); if (! array_key_exists($key, $cache)) { $res...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/MethodChaining/Client.php
src/Whizark/DesignPatterns/Uncategorized/MethodChaining/Client.php
<?php namespace Whizark\DesignPatterns\Uncategorized\MethodChaining; use Whizark\DesignPatterns\Uncategorized\MethodChaining\ChainableClass; require '../../../../../vendor/autoload.php'; $result = (new ChainableClass())->doSomethingA(1) ->doSomethingB(2) ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/MethodChaining/ChainableClass.php
src/Whizark/DesignPatterns/Uncategorized/MethodChaining/ChainableClass.php
<?php namespace Whizark\DesignPatterns\Uncategorized\MethodChaining; /** * Class ChainableClass * @package Whizark\DesignPatterns\Uncategorized\MethodChaining */ class ChainableClass { /** * @var null|int */ private $propetyA = null; /** * @var null|int */ private $propetyB = nu...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/NullObject/Client.php
src/Whizark/DesignPatterns/Uncategorized/NullObject/Client.php
<?php namespace Whizark\DesignPatterns\Uncategorized\NullObject; use Whizark\DesignPatterns\Uncategorized\NullObject\Delegator; use Whizark\DesignPatterns\Uncategorized\NullObject\RealOperation; use Whizark\DesignPatterns\Uncategorized\NullObject\NullOperation; require '../../../../../vendor/autoload.php'; $delegato...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/NullObject/OperationInterface.php
src/Whizark/DesignPatterns/Uncategorized/NullObject/OperationInterface.php
<?php namespace Whizark\DesignPatterns\Uncategorized\NullObject; /** * Interface OperationInterface * @package Whizark\DesignPatterns\Uncategorized\NullObject */ interface OperationInterface { /** * Do something. * * @return void */ public function request(); }
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/NullObject/NullOperation.php
src/Whizark/DesignPatterns/Uncategorized/NullObject/NullOperation.php
<?php namespace Whizark\DesignPatterns\Uncategorized\NullObject; use Whizark\DesignPatterns\Uncategorized\NullObject\OperationInterface; /** * Class NullOperation * @package Whizark\DesignPatterns\Uncategorized\NullObject */ class NullOperation implements OperationInterface { /** * {@inheritDoc} */ ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/NullObject/Delegator.php
src/Whizark/DesignPatterns/Uncategorized/NullObject/Delegator.php
<?php namespace Whizark\DesignPatterns\Uncategorized\NullObject; use Whizark\DesignPatterns\Uncategorized\NullObject\OperationInterface; /** * Class Delegator * @package Whizark\DesignPatterns\Uncategorized\NullObject */ class Delegator { /** * @var null|OperationInterface */ private $operation =...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/NullObject/RealOperation.php
src/Whizark/DesignPatterns/Uncategorized/NullObject/RealOperation.php
<?php namespace Whizark\DesignPatterns\Uncategorized\NullObject; use Whizark\DesignPatterns\Uncategorized\NullObject\OperationInterface; /** * Class RealOperation * @package Whizark\DesignPatterns\Uncategorized\NullObject */ class RealOperation implements OperationInterface { /** * {@inheritDoc} */ ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/HookOperation/Hook.php
src/Whizark/DesignPatterns/Uncategorized/HookOperation/Hook.php
<?php namespace Whizark\DesignPatterns\Uncategorized\HookOperation; use Whizark\DesignPatterns\Uncategorized\HookOperation\HookInterface; /** * Class Hook * @package Whizark\DesignPatterns\Uncategorized\HookOperation */ class Hook implements HookInterface { /** * {@inheritDoc} */ public function ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/HookOperation/Client.php
src/Whizark/DesignPatterns/Uncategorized/HookOperation/Client.php
<?php namespace Whizark\DesignPatterns\Uncategorized\HookOperation; use Whizark\DesignPatterns\Uncategorized\HookOperation\Hook; use Whizark\DesignPatterns\Uncategorized\HookOperation\HookedClass; require '../../../../../vendor/autoload.php'; $hookedObject = new HookedClass(new Hook()); $hookedObject->doSomething();...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/HookOperation/HookedClass.php
src/Whizark/DesignPatterns/Uncategorized/HookOperation/HookedClass.php
<?php namespace Whizark\DesignPatterns\Uncategorized\HookOperation; use Whizark\DesignPatterns\Uncategorized\HookOperation\HookInterface; /** * Class HookedClass * @package Whizark\DesignPatterns\Uncategorized\HookOperation */ class HookedClass { /** * @var null|HookInterface */ private $hook = n...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/Uncategorized/HookOperation/HookInterface.php
src/Whizark/DesignPatterns/Uncategorized/HookOperation/HookInterface.php
<?php namespace Whizark\DesignPatterns\Uncategorized\HookOperation; /** * Interface HookInterface * @package Whizark\DesignPatterns\Uncategorized\HookOperation */ interface HookInterface { /** * A Hook Operation. * * @return void */ public function hookOperationA(); /** * A Hoo...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Dependent.php
src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Dependent.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\SetterInjection; use Whizark\DesignPatterns\DependencyInjection\SetterInjection\DependencyInterface; /** * Class Dependent * @package Whizark\DesignPatterns\DependencyInjection\SetterInjection */ class Dependent { /** * @var null|DependencyInterfa...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Dependency.php
src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Dependency.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\SetterInjection; use Whizark\DesignPatterns\DependencyInjection\SetterInjection\DependencyInterface; /** * Class Dependency * @package Whizark\DesignPatterns\DependencyInjection\SetterInjection */ class Dependency implements DependencyInterface { /** ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Injector.php
src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/Injector.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\SetterInjection; use Whizark\DesignPatterns\DependencyInjection\SetterInjection\Dependency; use Whizark\DesignPatterns\DependencyInjection\SetterInjection\Dependent; require '../../../../../vendor/autoload.php'; $dependent = new Dependent(); $dependent->setD...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/DependencyInterface.php
src/Whizark/DesignPatterns/DependencyInjection/SetterInjection/DependencyInterface.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\SetterInjection; /** * Interface DependencyInterface * @package Whizark\DesignPatterns\DependencyInjection\SetterInjection */ interface DependencyInterface { /** * Do something. * * @return void */ public function doSomething(); ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Dependent.php
src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Dependent.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\ConstructorInjection; use Whizark\DesignPatterns\DependencyInjection\ConstructorInjection\DependencyInterface; /** * Class Dependent * @package Whizark\DesignPatterns\DependencyInjection\ConstructorInjection */ class Dependent { /** * @var null|De...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Dependency.php
src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Dependency.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\ConstructorInjection; use Whizark\DesignPatterns\DependencyInjection\ConstructorInjection\DependencyInterface; /** * Class Dependency * @package Whizark\DesignPatterns\DependencyInjection\ConstructorInjection */ class Dependency implements DependencyInterf...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Injector.php
src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/Injector.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\ConstructorInjection; use Whizark\DesignPatterns\DependencyInjection\ConstructorInjection\Dependency; use Whizark\DesignPatterns\DependencyInjection\ConstructorInjection\Dependent; require '../../../../../vendor/autoload.php'; $dependent = new Dependent(new ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/DependencyInterface.php
src/Whizark/DesignPatterns/DependencyInjection/ConstructorInjection/DependencyInterface.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\ConstructorInjection; /** * Interface DependencyInterface * @package Whizark\DesignPatterns\DependencyInjection\ConstructorInjection */ interface DependencyInterface { /** * Do something. * * @return void */ public function doSom...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Dependent.php
src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Dependent.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\InterfaceInjection; use Whizark\DesignPatterns\DependencyInjection\InterfaceInjection\DependencyAwareInterface; /** * Class Dependent * @package Whizark\DesignPatterns\DependencyInjection\InterfaceInjection */ class Dependent implements DependencyAwareInte...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Dependency.php
src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Dependency.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\InterfaceInjection; use Whizark\DesignPatterns\DependencyInjection\InterfaceInjection\DependencyInterface; /** * Class Dependency * @package Whizark\DesignPatterns\DependencyInjection\InterfaceInjection */ class Dependency implements DependencyInterface { ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Injector.php
src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/Injector.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\InterfaceInjection; use Whizark\DesignPatterns\DependencyInjection\InterfaceInjection\Dependency; use Whizark\DesignPatterns\DependencyInjection\InterfaceInjection\Dependent; require '../../../../../vendor/autoload.php'; $dependent = new Dependent(); $depend...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/DependencyInterface.php
src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/DependencyInterface.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\InterfaceInjection; /** * Interface DependencyInterface * @package Whizark\DesignPatterns\DependencyInjection\InterfaceInjection */ interface DependencyInterface { /** * Do something. * * @return void */ public function doSomethi...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/DependencyAwareInterface.php
src/Whizark/DesignPatterns/DependencyInjection/InterfaceInjection/DependencyAwareInterface.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\InterfaceInjection; /** * Interface DependencyAwareInterface * @package Whizark\DesignPatterns\DependencyInjection\InterfaceInjection */ interface DependencyAwareInterface { /** * Set a dependency. * * @param DependencyInterface $dependen...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Dependent.php
src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Dependent.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\TraitInjection; use Whizark\DesignPatterns\DependencyInjection\TraitInjection\DependencyAwareTrait; /** * Class Dependent * @package Whizark\DesignPatterns\DependencyInjection\TraitInjection */ class Dependent { use DependencyAwareTrait; /** ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Dependency.php
src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Dependency.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\TraitInjection; use Whizark\DesignPatterns\DependencyInjection\TraitInjection\DependencyInterface; /** * Class Dependency * @package Whizark\DesignPatterns\DependencyInjection\TraitInjection */ class Dependency implements DependencyInterface { /** ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/DependencyAwareTrait.php
src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/DependencyAwareTrait.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\TraitInjection; use Whizark\DesignPatterns\DependencyInjection\TraitInjection\DependencyInterface; /** * Trait DependencyAwareTrait * @package Whizark\DesignPatterns\DependencyInjection\TraitInjection */ trait DependencyAwareTrait { /** * @var nul...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Injector.php
src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/Injector.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\TraitInjection; use Whizark\DesignPatterns\DependencyInjection\TraitInjection\Dependency; use Whizark\DesignPatterns\DependencyInjection\TraitInjection\Dependent; require '../../../../../vendor/autoload.php'; $dependent = new Dependent; $dependent->setDepend...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/DependencyInterface.php
src/Whizark/DesignPatterns/DependencyInjection/TraitInjection/DependencyInterface.php
<?php namespace Whizark\DesignPatterns\DependencyInjection\TraitInjection; /** * Interface DependencyInterface * @package Whizark\DesignPatterns\DependencyInjection\TraitInjection */ interface DependencyInterface { /** * Do something. * * @return void */ public function doSomething(); }
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/Singleton/Client.php
src/Whizark/DesignPatterns/GoF/Creational/Singleton/Client.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\Singleton; require '../../../../../../vendor/autoload.php'; $instance = Singleton::getInstance();
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/Singleton/Singleton.php
src/Whizark/DesignPatterns/GoF/Creational/Singleton/Singleton.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\Singleton; /** * Class Singleton * @package Whizark\DesignPatterns\GoF\Creational\Singleton */ class Singleton { /** * @var array */ private static $instances = []; /** * Prevent direct instantiation. */ private function __co...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/Prototype/PrototypeInterface.php
src/Whizark/DesignPatterns/GoF/Creational/Prototype/PrototypeInterface.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\Prototype; /** * Interface PrototypeInterface * @package Whizark\DesignPatterns\GoF\Creational\Prototype */ interface PrototypeInterface { /** * The built-in magical method that will be called after a cloning. * * @return void */ publ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/Prototype/Client.php
src/Whizark/DesignPatterns/GoF/Creational/Prototype/Client.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\Prototype; require '../../../../../../vendor/autoload.php'; $prototype = new Prototype(); $clonedPrototype = clone $prototype;
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/Prototype/Prototype.php
src/Whizark/DesignPatterns/GoF/Creational/Prototype/Prototype.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\Prototype; use Whizark\DesignPatterns\GoF\Creational\Prototype\PrototypeInterface; /** * Class ConcretePrototype * @package Whizark\DesignPatterns\GoF\Creational\Prototype */ class Prototype implements PrototypeInterface { /** * {@inheritDoc} */ ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Client.php
src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Client.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod; use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\Creator; require '../../../../../../vendor/autoload.php'; $creator = new Creator(); $product = $creator->factoryMethod(); $product->doSomething();
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Creator.php
src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Creator.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod; use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\CreatorInterface; use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\Product; /** * Class Creator * @package Whizark\DesignPatterns\GoF\Creational\FactoryMethod */ class Creator impleme...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Product.php
src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/Product.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod; use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\ProductInterface; /** * Class Product * @package Whizark\DesignPatterns\GoF\Creational\FactoryMethod */ class Product implements ProductInterface { /** * @{inheritDoc} */ p...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/CreatorInterface.php
src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/CreatorInterface.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod; use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\ProductInterface; /** * Interface CreatorInterface * @package Whizark\DesignPatterns\GoF\Creational\FactoryMethod */ interface CreatorInterface { /** * A Factory Method. * ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/ProductInterface.php
src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/ProductInterface.php
<?php namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod; /** * Interface ProductInterface * @package Whizark\DesignPatterns\GoF\Creational\FactoryMethod */ interface ProductInterface { /** * Do something. * * @return void */ public function doSomething(); }
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyB.php
src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyB.php
<?php namespace Whizark\DesignPatterns\GoF\Behavioral\Strategy; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\StrategyInterface; /** * Class StrategyB * @package Whizark\DesignPatterns\GoF\Behavioral\Strategy */ class StrategyB implements StrategyInterface { /** * {@inheritDoc} */ public fun...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/Client.php
src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/Client.php
<?php namespace Whizark\DesignPatterns\GoF\Behavioral\Strategy; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\Context; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\StrategyA; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\StrategyB; require '../../../../../../vendor/autoload.php'; $contextA = new Cont...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/Context.php
src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/Context.php
<?php namespace Whizark\DesignPatterns\GoF\Behavioral\Strategy; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\StrategyInterface; /** * Class Context * @package Whizark\DesignPatterns\GoF\Behavioral\Strategy */ class Context { /** * @var null|StrategyInterface */ private $strategy = null; ...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyA.php
src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyA.php
<?php namespace Whizark\DesignPatterns\GoF\Behavioral\Strategy; use Whizark\DesignPatterns\GoF\Behavioral\Strategy\StrategyInterface; /** * Class StrategyA * @package Whizark\DesignPatterns\GoF\Behavioral\Strategy */ class StrategyA implements StrategyInterface { /** * {@inheritDoc} */ public fun...
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false
whizark/php-patterns
https://github.com/whizark/php-patterns/blob/83d8e05481c4da6c632acf91c820f0e6306a7399/src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyInterface.php
src/Whizark/DesignPatterns/GoF/Behavioral/Strategy/StrategyInterface.php
<?php namespace Whizark\DesignPatterns\GoF\Behavioral\Strategy; /** * Interface StrategyInterface * @package Whizark\DesignPatterns\GoF\Behavioral\Strategy */ interface StrategyInterface { /** * Do something. * * @return void */ public function doSomething(); }
php
MIT
83d8e05481c4da6c632acf91c820f0e6306a7399
2026-01-05T04:31:20.302363Z
false