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 |
|---|---|---|---|---|---|---|---|---|
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/view.php | app/config/view.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be check... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/database.php | app/config/database.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire t... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/facebook.php | app/config/facebook.php | <?php
// app/config/facebook.php
// Facebook app Config
return array(
'appId' => getenv('fb_id'),
'secret' => getenv('fb_secret')
); | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/mail.php | app/config/mail.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/compile.php | app/config/compile.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Additional Compiled Classes
|--------------------------------------------------------------------------
|
| Here you may specify additional classes to include in the compiled file
| generated by the `artisan op... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/auth.php | app/config/auth.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Default Authentication Driver
|--------------------------------------------------------------------------
|
| This option controls the authentication driver that will be utilized.
| This drivers manages the ret... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/testing/session.php | app/config/testing/session.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use ... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/testing/cache.php | app/config/testing/cache.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| This option controls the default cache "driver" that will be used when
| using the Caching library. Of course... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/local/session.php | app/config/local/session.php | <?php
return array(
'driver' => 'native',
); | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/local/cache.php | app/config/local/cache.php | <?php
return array(
'driver' => 'file',
); | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/config/local/database.php | app/config/local/database.php | <?php
return array(
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'facebook-login',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'coll... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/database/seeds/DatabaseSeeder.php | app/database/seeds/DatabaseSeeder.php | <?php
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
// $this->call('UserTableSeeder');
}
} | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/database/migrations/2013_08_19_055233_create_profiles_table.php | app/database/migrations/2013_08_19_055233_create_profiles_table.php | <?php
use Illuminate\Database\Migrations\Migration;
class CreateProfilesTable extends Migration {
public function up()
{
Schema::create('profiles', function($table)
{
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('username');
$table->... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/app/database/migrations/2013_08_19_055228_create_users_table.php | app/database/migrations/2013_08_19_055228_create_users_table.php | <?php
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
public function up()
{
Schema::create('users', function($table)
{
$table->increments('id');
$table->string('email')->unique();
$table->string('photo');
$table->string('name')... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/bootstrap/start.php | bootstrap/start.php | <?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of La... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/bootstrap/autoload.php | bootstrap/autoload.php | <?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for ... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/bootstrap/paths.php | bootstrap/paths.php | <?php
return array(
/*
|--------------------------------------------------------------------------
| Application Path
|--------------------------------------------------------------------------
|
| Here we just defined the path to the application directory. Most likely
| you will never need to change this valu... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
msurguy/laravel-facebook-login | https://github.com/msurguy/laravel-facebook-login/blob/69a8a7707caa879000d64fc24e1ae20a36e96e64/public/index.php | public/index.php | <?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|... | php | MIT | 69a8a7707caa879000d64fc24e1ae20a36e96e64 | 2026-01-05T04:56:51.782788Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/CURLException.php | src/CURLException.php | <?php
namespace mpyw\Co;
class CURLException extends \RuntimeException
{
private $handle;
/**
* Constructor.
* @param string $message
* @param int $code
* @param resource $handle
*/
public function __construct($message, $code, $handle)
{
parent::__construct($m... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/CoInterface.php | src/CoInterface.php | <?php
namespace mpyw\Co;
interface CoInterface
{
const RETURN_WITH = '__RETURN_WITH__';
const RETURN_ = '__RETURN_WITH__'; // alias
const RET = '__RETURN_WITH__'; // alias
const RTN = '__RETURN_WITH__'; // alias
const SAFE = '__SAFE__';
const DELAY = '__DELAY__';
const SLEEP = '__DELAY__';... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/AllFailedException.php | src/AllFailedException.php | <?php
namespace mpyw\Co;
class AllFailedException extends \RuntimeException
{
private $reasons;
/**
* Constructor.
* @param string $message Dummy message.
* @param int $code Always zero.
* @param mixed $reasons Reasons why jobs are failed.
*/
public function __constr... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Co.php | src/Co.php | <?php
namespace mpyw\Co;
use mpyw\Co\Internal\TypeUtils;
use mpyw\Co\Internal\ControlUtils;
use mpyw\Co\Internal\YieldableUtils;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\GeneratorContainer;
use mpyw\Co\Internal\Pool;
use React\Promise\Deferred;
use React\Promise\PromiseInterface;
use React\Promise\ExtendedP... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/ManualScheduler.php | src/Internal/ManualScheduler.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\CURLException;
use React\Promise\Deferred;
use React\Promise\PromiseInterface;
class ManualScheduler extends AbstractScheduler
{
/**
* cURL handles those have not been dispatched.
* @var array
*/
private $queue = [];
/**
* Constructor.
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/Pool.php | src/Internal/Pool.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\CURLException;
use React\Promise\PromiseInterface;
class Pool
{
/**
* Options.
* @var CoOption
*/
private $options;
/**
* cURL multi handle.
* @var resource
*/
private $mh;
/**
* Used for halting loop.
* @var \... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/Delayer.php | src/Internal/Delayer.php | <?php
namespace mpyw\Co\Internal;
use React\Promise\Deferred;
use React\Promise\PromiseInterface;
class Delayer
{
/**
* Delays to be ended at.
* @var array
*/
private $untils = [];
/**
* Deferreds.
* @var array
*/
private $deferreds = [];
/**
* Add delay.
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/ControlException.php | src/Internal/ControlException.php | <?php
namespace mpyw\Co\Internal;
class ControlException extends \Exception
{
private $value;
/**
* Constructor.
* @param mixed $value Value to be retrived.
*/
public function __construct($value)
{
parent::__construct();
$this->value = $value;
}
/**
*... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/ControlUtils.php | src/Internal/ControlUtils.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\AllFailedException;
use mpyw\Co\CoInterface;
class ControlUtils
{
/**
* Executed by Co::any() or Co::race().
* @param mixed $value
* @param callable $filter self::reverse or self::fail.
* @param string $message Used for failure.
* @re... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/CoOption.php | src/Internal/CoOption.php | <?php
namespace mpyw\Co\Internal;
class CoOption implements \ArrayAccess
{
/**
* Field types.
* @var array
*/
private static $types = [
'throw' => 'Bool', // Throw CURLExceptions?
'pipeline' => 'Bool', // Use HTTP/1.1 pipelining?
'multiplex' => 'Bool', // Use HTTP/2 mult... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/AutoScheduler.php | src/Internal/AutoScheduler.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\CURLException;
use React\Promise\Deferred;
use React\Promise\PromiseInterface;
class AutoScheduler extends AbstractScheduler
{
/**
* Constructor.
* Initialize cURL multi handle.
* @param CoOption $options
* @param resource $mh curl_multi
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/TypeUtils.php | src/Internal/TypeUtils.php | <?php
namespace mpyw\Co\Internal;
class TypeUtils
{
/**
* Check if value is a valid cURL handle.
* @param mixed $value
* @return bool
*/
public static function isCurl($value)
{
return is_resource($value) && get_resource_type($value) === 'curl';
}
/**
* Check if v... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/AbstractScheduler.php | src/Internal/AbstractScheduler.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\CURLException;
use React\Promise\PromiseInterface;
abstract class AbstractScheduler
{
/**
* cURL multi handle.
* @var resource
*/
protected $mh;
/**
* Options.
* @var CoOption
*/
protected $options;
/**
* cURL handl... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/YieldableUtils.php | src/Internal/YieldableUtils.php | <?php
namespace mpyw\Co\Internal;
use React\Promise\PromiseInterface;
class YieldableUtils
{
/**
* Recursively normalize value.
* Generator Closure -> GeneratorContainer
* Array -> Array (children's are normalized)
* Others -> Others
* @param mixed $val... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/src/Internal/GeneratorContainer.php | src/Internal/GeneratorContainer.php | <?php
namespace mpyw\Co\Internal;
use mpyw\Co\CoInterface;
class GeneratorContainer
{
/**
* Generator.
* @var \Generator
*/
private $g;
/**
* Generator object hash.
* @var string
*/
private $h;
/**
* Thrown exception.
* @var \Throwable|\Exception
*/
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_bootstrap.php | tests/_bootstrap.php | <?php
// This is global bootstrap for autoloading
include __DIR__.'/../vendor/autoload.php'; // composer autoload
\Codeception\Specify\Config::setDeepClone(false);
$kernel = \AspectMock\Kernel::getInstance();
$kernel->init([
'debug' => true,
'includePaths' => [__DIR__ . '/../src'],
]);
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/acceptance/_bootstrap.php | tests/acceptance/_bootstrap.php | <?php
// Here you can initialize variables that will be available to your tests
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/PoolTest.php | tests/unit/PoolTest.php | <?php
require_once __DIR__ . '/DummyCurl.php';
require_once __DIR__ . '/DummyCurlMulti.php';
require_once __DIR__ . '/DummyCurlFunctions.php';
use mpyw\Co\Co;
use mpyw\Co\CoInterface;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\Pool;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
use AspectMock\Te... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/DummyCurlMulti.php | tests/unit/DummyCurlMulti.php | <?php
class DummyCurlMulti
{
private $pool = [];
private $execCount = 0;
public function addHandle($ch) : int
{
if (isset($this->pool[(string)$ch])) {
return 7;
}
$this->pool[(string)$ch] = $ch;
return 0;
}
public function removeHandle($ch) : int
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/AutoPoolTest.php | tests/unit/AutoPoolTest.php | <?php
require_once __DIR__ . '/DummyCurl.php';
require_once __DIR__ . '/DummyCurlMulti.php';
require_once __DIR__ . '/DummyCurlFunctions.php';
use mpyw\Co\Co;
use mpyw\Co\CoInterface;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\Pool;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
use AspectMock\Te... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/ControlTest.php | tests/unit/ControlTest.php | <?php
require_once __DIR__ . '/DummyCurl.php';
require_once __DIR__ . '/DummyCurlMulti.php';
require_once __DIR__ . '/DummyCurlFunctions.php';
use mpyw\Co\Co;
use mpyw\Co\CoInterface;
use mpyw\Co\CURLException;
use mpyw\Co\AllFailedException;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\Pool;
use mpyw\Privator... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/CoTest.php | tests/unit/CoTest.php | <?php
require_once __DIR__ . '/DummyCurl.php';
require_once __DIR__ . '/DummyCurlMulti.php';
require_once __DIR__ . '/DummyCurlFunctions.php';
use mpyw\Co\Co;
use mpyw\Co\CoInterface;
use mpyw\Co\CURLException;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\Pool;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyE... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/DummyCurl.php | tests/unit/DummyCurl.php | <?php
class DummyCurl
{
private $multiHandle;
private $identifier;
private $cost;
private $reservedErrno;
private $reservedErrstr;
private $reservedResponse;
private $counter = 0;
private $read = false;
private $response = '';
private $errno = -1;
private $errstr = '';
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/_bootstrap.php | tests/unit/_bootstrap.php | <?php
// Here you can initialize variables that will be available to your tests
//
function vd(...$args)
{
ob_start();
var_dump(...$args);
$data = ob_get_clean();
file_put_contents('php://stderr', "\n$data\n");
}
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/CoOptionTest.php | tests/unit/CoOptionTest.php | <?php
use mpyw\Co\Internal\CoOption;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
/**
* @requires PHP 7.0
*/
class CoOptionTest extends \Codeception\TestCase\Test
{
use \Codeception\Specify;
private static $CoOption;
public function _before()
{
$this->default = CoOption::getDe... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/GeneratorContainerTest.php | tests/unit/GeneratorContainerTest.php | <?php
use mpyw\Co\CoInterface;
use mpyw\Co\Internal\GeneratorContainer;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
/**
* @requires PHP 7.0
*/
class GeneratorContainerTest extends \Codeception\TestCase\Test
{
use \Codeception\Specify;
private static $GeneratorContainer;
public function _... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/DummyCurlFunctions.php | tests/unit/DummyCurlFunctions.php | <?php
namespace mpyw\Co\Internal;
function defined(string $name) : bool {
if (!\defined($name)) {
define($name, 114514);
}
foreach (debug_backtrace() as $trace) {
if (isset($trace['class']) && $trace['class'] === 'AutoPoolTest') {
return $trace['function'] !== 'testInvalidOptio... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/UtilsTest.php | tests/unit/UtilsTest.php | <?php
use mpyw\Co\CoInterface;
use mpyw\Co\Internal\GeneratorContainer;
use mpyw\Co\Internal\YieldableUtils;
use mpyw\Co\Internal\TypeUtils;
use mpyw\Co\Internal\CoOption;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
/**
* @requires PHP 7.0
*/
class UtilsTest extends \Codeception\TestCase\Test
{
u... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/unit/ManualPoolTest.php | tests/unit/ManualPoolTest.php | <?php
require_once __DIR__ . '/DummyCurl.php';
require_once __DIR__ . '/DummyCurlMulti.php';
require_once __DIR__ . '/DummyCurlFunctions.php';
use mpyw\Co\Co;
use mpyw\Co\CoInterface;
use mpyw\Co\Internal\CoOption;
use mpyw\Co\Internal\Pool;
use mpyw\Privator\Proxy;
use mpyw\Privator\ProxyException;
use AspectMock\Te... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/AcceptanceTester.php | tests/_support/AcceptanceTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/UnitTester.php | tests/_support/UnitTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/FunctionalTester.php | tests/_support/FunctionalTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/Helper/Functional.php | tests/_support/Helper/Functional.php | <?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Functional extends \Codeception\Module
{
}
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/Helper/Unit.php | tests/_support/Helper/Unit.php | <?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module
{
}
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/Helper/Acceptance.php | tests/_support/Helper/Acceptance.php | <?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Acceptance extends \Codeception\Module
{
}
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/_generated/AcceptanceTesterActions.php | tests/_support/_generated/AcceptanceTesterActions.php | <?php //[STAMP] 0313d1b3990d7fd01d357b6dec376b7f
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Module\PhpBrowser;
use Helper\Acceptance;
trait AcceptanceTesterAc... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | true |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/_generated/FunctionalTesterActions.php | tests/_support/_generated/FunctionalTesterActions.php | <?php //[STAMP] bc472f8f73298de32089ceb3152b40dd
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Helper\Functional;
trait FunctionalTesterActions
{
/**
* @return \Cod... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/_support/_generated/UnitTesterActions.php | tests/_support/_generated/UnitTesterActions.php | <?php //[STAMP] 6e841f8cf4534489e89238d437883046
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Module\Asserts;
use Helper\Unit;
trait UnitTesterActions
{
/**... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/tests/functional/_bootstrap.php | tests/functional/_bootstrap.php | <?php
// Here you can initialize variables that will be available to your tests
| php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/localhost/client-init.php | examples/localhost/client-init.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
set_time_limit(0);
/**
* REST API
* @param string $path
* @param array $q
* @return resource
*/
function curl(string $path, array $q = [])
{
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "http://localhost:8080$path?" . http_bui... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/localhost/client-01.php | examples/localhost/client-01.php | <?php
use mpyw\Co\Co;
use mpyw\Co\CURLException;
require __DIR__ . '/client-init.php';
// Wait 7 sec
print_time();
$result = Co::wait([curl('/rest', ['id' => 1, 'sleep' => 7]), function () {
// Wait 4 sec
print_r(yield [
curl('/rest', ['id' => 2, 'sleep' => 3]),
curl('/rest', ['id' => 3, 'sle... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/localhost/server.php | examples/localhost/server.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
set_time_limit(0);
declare(ticks = 1);
pcntl_signal(SIGCHLD, 'signal_handler');
serve();
/**
* Erorr-safe fwrite().
* @param resource $con
* @param string $data
* @throws \RuntimeException
*/
function fsend($con, string $data)
{
if (!@fwrite($con, $data... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/localhost/client-02.php | examples/localhost/client-02.php | <?php
use mpyw\Co\Co;
use mpyw\Co\CURLException;
require __DIR__ . '/client-init.php';
// Wait 5 sec
print_time();
$result = Co::wait([curl('/rest', ['id' => 1, 'sleep' => 5]), function () {
// Wait 3 sec
print_r(unwrap(yield Co::SAFE => [
curl('/rest', ['id' => 2, 'sleep' => 3]),
function ()... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/github/download_follower_avatars_pipelined_unlimited.php | examples/github/download_follower_avatars_pipelined_unlimited.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
function curl_init_with(string $url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => tru... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/github/download_follower_avatars_default.php | examples/github/download_follower_avatars_default.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
function curl_init_with(string $url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => tru... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/github/download_follower_avatars_pipelined.php | examples/github/download_follower_avatars_pipelined.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
function curl_init_with(string $url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => tru... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/timer/timer.php | examples/timer/timer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
Co::wait([
function () {
for ($i = 0; $i < 8; ++$i) {
yield CO::DELAY => 1.1;
echo "[A] Timer: $i\n";
}
},
function () {
for ($i = 0; $i < 5; ++$i) {
... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/timer/request-timer.php | examples/timer/request-timer.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
Co::wait(function () {
yield [timer($stop), main($stop)];
});
function curl_init_with(string $url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CU... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/intro/intro-php7.php | examples/intro/intro-php7.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
function curl_init_with(string $url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
], $options);
curl_setopt_arr... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
mpyw/co | https://github.com/mpyw/co/blob/ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39/examples/intro/intro-php55.php | examples/intro/intro-php55.php | <?php
require __DIR__ . '/../../vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Co\CURLException;
function curl_init_with($url, array $options = [])
{
$ch = curl_init();
$options = array_replace([
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
], $options);
curl_setopt_array($ch,... | php | MIT | ca7d2c1ad3b0f8b8602b7988ac7a7b0f87331a39 | 2026-01-05T04:56:52.685374Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Api.php | src/Api.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Swoole\Coroutine;
use Swoole\Coroutine\Barrier;
use Xielei\Swoole\Cmd\BindUid;
use Xielei\Swoole\Cmd\CloseClient;
use Xielei\Swoole\Cmd\DeleteSession;
use Xielei\Swoole\Cmd\GetClientCount;
use Xielei\Swoole\Cmd\GetClientCountByGroup;
use Xielei\Swoole\Cmd\G... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Register.php | src/Register.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Swoole\Coroutine\Server\Connection;
use Swoole\Server;
use Xielei\Swoole\Library\Config;
use Xielei\Swoole\Library\SockServer;
class Register extends Service
{
protected $inner_server;
protected $register_host;
protected $register_port;
p... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Gateway.php | src/Gateway.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Swoole\Coroutine;
use Swoole\Coroutine\Server\Connection;
use Swoole\Process;
use Swoole\Server as SwooleServer;
use Swoole\Timer;
use Swoole\WebSocket\Server as WebSocketServer;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Library\Client;
u... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Protocol.php | src/Protocol.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Exception;
class Protocol
{
const PING = 0;
const GATEWAY_CONNECT = 1;
const WORKER_CONNECT = 2;
const BROADCAST_GATEWAY_LIST = 3;
const EVENT_CONNECT = 20;
const EVENT_RECEIVE = 21;
const EVENT_CLOSE = 22;
const EVENT_OPEN... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cli.php | src/Cli.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Throwable;
class Cli
{
const PANEL_IGNORE = 0;
const PANEL_START = 1;
const PANEL_LISTEN = 2;
const PANEL_EXIT = 99;
private $cmds = [];
public function __construct()
{
if (php_sapi_name() != 'cli') {
exit... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Service.php | src/Service.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Swoole\Process;
use Swoole\Server as SwooleServer;
use Swoole\Timer;
use Xielei\Swoole\Library\Config;
use Xielei\Swoole\Library\Globals;
use Xielei\Swoole\Library\Reload;
define('SW_VERSION', '2.0.0');
/**
* @property Globals $globals
*/
abstract class... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Worker.php | src/Worker.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Swoole\Coroutine;
use Swoole\Process;
use Swoole\Server as SwooleServer;
use Swoole\Timer;
use Xielei\Swoole\Cmd\Ping;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Cmd\RegisterWorker;
use Xielei\Swoole\Library\Client;
use Xielei\Swoole\Library\... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/HttpApi.php | src/HttpApi.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole;
use Exception;
use Xielei\Swoole\Cmd\BindUid;
use Xielei\Swoole\Cmd\CloseClient;
use Xielei\Swoole\Cmd\DeleteSession;
use Xielei\Swoole\Cmd\GetClientCount;
use Xielei\Swoole\Cmd\GetClientCountByGroup;
use Xielei\Swoole\Cmd\GetClientInfo;
use Xielei\Swoole\Cmd\G... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Interfaces/WorkerEventInterface.php | src/Interfaces/WorkerEventInterface.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Interfaces;
use Swoole\Server\PipeMessage;
use Swoole\Server\TaskResult;
interface WorkerEventInterface
{
/**
* worker start
*
* @return void
*/
public function onWorkerStart();
/**
* worker stop
*
* @return void
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Interfaces/TaskEventInterface.php | src/Interfaces/TaskEventInterface.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Interfaces;
use Swoole\Server\PipeMessage;
use Swoole\Server\Task;
interface TaskEventInterface
{
/**
* worker start
*
* @return void
*/
public function onWorkerStart();
/**
* worker stop
*
* @return void
*/
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Interfaces/CmdInterface.php | src/Interfaces/CmdInterface.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Interfaces;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Gateway;
interface CmdInterface
{
/**
* get command code
*
* @return integer
*/
public static function getCommandCode(): int;
/**
* execute command
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/RegisterWorker.php | src/Cmd/RegisterWorker.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\ConnectionPool;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class RegisterWorker implements CmdInterface
{
public static function getCommandCode(): int
{
return 19... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/JoinGroup.php | src/Cmd/JoinGroup.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class JoinGroup implements CmdInterface
{
public static function getCommandCode(): int
{
return 17;
}
public static funct... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/SendToAll.php | src/Cmd/SendToAll.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class SendToAll implements CmdInterface
{
public static function getCommandCode(): int
{
return 20;
}
public static funct... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/SendToClient.php | src/Cmd/SendToClient.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class SendToClient implements CmdInterface
{
public static function getCommandCode(): int
{
return 21;
}
public static fu... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/UnBindUid.php | src/Cmd/UnBindUid.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class UnBindUid implements CmdInterface
{
public static function getCommandCode(): int
{
return 24;
}
public static funct... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientList.php | src/Cmd/GetClientList.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientList implements CmdInterface
{
public static function getCommandCode(): int
{
return 8;... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientCount.php | src/Cmd/GetClientCount.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientCount implements CmdInterface
{
public static function getCommandCode(): int
{
return 4... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/UnGroup.php | src/Cmd/UnGroup.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class UnGroup implements CmdInterface
{
public static function getCommandCode(): int
{
return 25;
}
public static functio... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetUidList.php | src/Cmd/GetUidList.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetUidList implements CmdInterface
{
public static function getCommandCode(): int
{
return 14;
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientInfo.php | src/Cmd/GetClientInfo.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientInfo implements CmdInterface
{
public static function getCommandCode(): int
{
return 7;... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientListByGroup.php | src/Cmd/GetClientListByGroup.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientListByGroup implements CmdInterface
{
public static function getCommandCode(): int
{
re... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/IsOnline.php | src/Cmd/IsOnline.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class IsOnline implements CmdInterface
{
public static function getCommandCode(): int
{
return 16;
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetUidCount.php | src/Cmd/GetUidCount.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetUidCount implements CmdInterface
{
public static function getCommandCode(): int
{
return 13;
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/DeleteSession.php | src/Cmd/DeleteSession.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class DeleteSession implements CmdInterface
{
public static function getCommandCode(): int
{
return 3;
}
public static fu... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientCountByGroup.php | src/Cmd/GetClientCountByGroup.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientCountByGroup implements CmdInterface
{
public static function getCommandCode(): int
{
r... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetClientListByUid.php | src/Cmd/GetClientListByUid.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetClientListByUid implements CmdInterface
{
public static function getCommandCode(): int
{
retu... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/CloseClient.php | src/Cmd/CloseClient.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class CloseClient implements CmdInterface
{
public static function getCommandCode(): int
{
return 2;
}
public static func... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/Ping.php | src/Cmd/Ping.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class Ping implements CmdInterface
{
public static function getCommandCode(): int
{
return 0;
}
public static function en... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetGroupList.php | src/Cmd/GetGroupList.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetGroupList implements CmdInterface
{
public static function getCommandCode(): int
{
return 11;... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/GetSession.php | src/Cmd/GetSession.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
use Xielei\Swoole\Protocol;
class GetSession implements CmdInterface
{
public static function getCommandCode(): int
{
return 12;
... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
xielei/swoole-worker | https://github.com/xielei/swoole-worker/blob/f7a5b731d86f62c9040056f08a3a513fd3f90e28/src/Cmd/LeaveGroup.php | src/Cmd/LeaveGroup.php | <?php
declare(strict_types=1);
namespace Xielei\Swoole\Cmd;
use Swoole\Coroutine\Server\Connection;
use Xielei\Swoole\Interfaces\CmdInterface;
use Xielei\Swoole\Gateway;
class LeaveGroup implements CmdInterface
{
public static function getCommandCode(): int
{
return 18;
}
public static func... | php | Apache-2.0 | f7a5b731d86f62c9040056f08a3a513fd3f90e28 | 2026-01-05T04:57:25.551053Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.