Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (500) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 92 | All time: 9,757 This week: 189 |
Version | License | PHP version | Categories | |||
socket-programming-u 1.0.0 | GNU General Publi... | 5 | Networking, PHP 5 |
Description | Author | ||||||||
This package provides example code to interact with a server using a WebSockets client. Recommendations Capture user fingerprint and save in database |
|
composer require cboden/ratchet
namespace MyApp;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
class RealTimeData implements MessageComponentInterface {
protected $clients;
public function __construct() {
$this->clients = new \SplObjectStorage;
//print_r($this->clients);
}
public function onOpen(ConnectionInterface $conn) {
// Store the new connection to send messages to later
$this->clients->attach($conn);
// print_r($conn->resourceId);
echo "RealTime Data New connection! ({$conn->resourceId})\n";
}
public function onMessage(ConnectionInterface $from, $msg) {
$numRecv = count($this->clients) - 1;
//echo sprintf('Connection %d sending message "%s" to %d other connection%s' . "\n" , $from->resourceId, $msg, $numRecv, $numRecv == 1 ? '' : 's');
$msg = json_decode($msg);
//print_r($msg);
foreach ($this->clients as $client) {
if ($from === $client) {
// The sender is not the receiver, send to each client connected
$client->send(json_encode(array('status'=>"Success")));
}
}
}
public function onClose(ConnectionInterface $conn) {
// The connection is closed, remove it, as we can no longer send it messages
$this->clients->detach($conn);
echo "Connection {$conn->resourceId} has disconnected\n";
}
public function onError(ConnectionInterface $conn, \Exception $e) {
echo "An error has occurred: {$e->getMessage()}\n";
$conn->close();
}
}
<?php
use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;
use MyApp\RealTimeData;
require dirname(__DIR__) . '/vendor/autoload.php';
$server = IoServer::factory(
new HttpServer(
new WsServer(
new RealTimeData()
)
),
8080
);
$server->run();
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello</title>
</head>
<body>
<script type="text/javascript">
// When Single Connection
var conn = new WebSocket('ws://localhost:8080');
conn.onopen = function(e) {
console.log("Connection established!");
var data = {
'name': "kartik",
'age': 28,
'bio': {
'hobi': 'reading',
'skill': 'Codding'
}
};
conn.send(JSON.stringify(data));
};
conn.onmessage = function(e) {
console.log(e.data);
};
/*
// you can route multiple socket connection
var conn = new WebSocket('ws://localhost:8080/home');
conn.onopen = function(e) {
console.log("Connection established!");
var data = {
'name': "kartik",
'age': 28,
'bio': {
'hobi': 'reading',
'skill': 'Codding'
}
};
conn.send(JSON.stringify(data));
};
conn.onmessage = function(e) {
console.log(e.data);
};
var conn2 = new WebSocket('ws://localhost:8080/realtime');
conn2.onopen = function(e) {
console.log("Connection established!");
var data = {
'name': "Its Stock Data",
'age': 28,
'bio': {
'hobi': 'reading',
'skill': 'Codding'
}
};
conn2.send(JSON.stringify(data));
};
conn2.onmessage = function(e) {
console.log(e.data);
};
*/
</script>
</body>
</html>
Fire following command to run server
php bin/realtimedata.php
Files |
File | Role | Description | ||
---|---|---|---|---|
bin (2 files) | ||||
src (2 files) | ||||
vendor (1 file, 9 directories) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
index.php | Aux. | Auxiliary script | ||
README.md | Doc. | Read me |
Files | / | bin |
File | Role | Description |
---|---|---|
multipleroute.php | Class | Class source |
realtimedata.php | Example | Example script |
Files | / | src |
File | Role | Description |
---|---|---|
HomePage.php | Class | Class source |
RealTimeData.php | Class | Class source |
Files | / | vendor |
File | Role | Description | ||
---|---|---|---|---|
cboden (1 directory) | ||||
composer (12 files) | ||||
evenement (1 directory) | ||||
guzzlehttp (1 directory) | ||||
psr (1 directory) | ||||
ralouphie (1 directory) | ||||
ratchet (1 directory) | ||||
react (7 directories) | ||||
symfony (5 directories) | ||||
autoload.php | Aux. | Auxiliary script |
Files | / | vendor | / | cboden | / | ratchet |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
tests (1 file, 3 directories) | ||||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
Makefile | Data | Auxiliary data | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet |
File | Role | Description | ||
---|---|---|---|---|
Http (7 files) | ||||
Server (5 files) | ||||
Session (1 file, 2 directories) | ||||
Wamp (8 files) | ||||
WebSocket (6 files) | ||||
AbstractConnectionDecorator.php | Class | Class source | ||
App.php | Class | Class source | ||
ComponentInterface.php | Class | Class source | ||
ConnectionInterface.php | Class | Class source | ||
MessageComponentInterface.php | Class | Class source | ||
MessageInterface.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Http |
File | Role | Description |
---|---|---|
CloseResponseTrait.php | Class | Class source |
HttpRequestParser.php | Class | Class source |
HttpServer.php | Class | Class source |
HttpServerInterface.php | Class | Class source |
NoOpHttpServerController.php | Class | Class source |
OriginCheck.php | Class | Class source |
Router.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Server |
File | Role | Description |
---|---|---|
EchoServer.php | Class | Class source |
FlashPolicy.php | Class | Class source |
IoConnection.php | Class | Class source |
IoServer.php | Class | Class source |
IpBlackList.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Session |
File | Role | Description | ||
---|---|---|---|---|
Serialize (3 files) | ||||
Storage (1 file, 1 directory) | ||||
SessionProvider.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Session | / | Serialize |
File | Role | Description |
---|---|---|
HandlerInterface.php | Class | Class source |
PhpBinaryHandler.php | Class | Class source |
PhpHandler.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Session | / | Storage |
File | Role | Description | ||
---|---|---|---|---|
Proxy (1 file) | ||||
VirtualSessionStorage.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Session | / | Storage | / | Proxy |
File | Role | Description |
---|---|---|
VirtualProxy.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | Wamp |
File | Role | Description |
---|---|---|
Exception.php | Class | Class source |
JsonException.php | Class | Class source |
ServerProtocol.php | Class | Class source |
Topic.php | Class | Class source |
TopicManager.php | Class | Class source |
WampConnection.php | Class | Class source |
WampServer.php | Class | Class source |
WampServerInterface.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | src | / | Ratchet | / | WebSocket |
File | Role | Description |
---|---|---|
ConnContext.php | Class | Class source |
MessageCallableInterface.php | Class | Class source |
MessageComponentInterface.php | Class | Class source |
WsConnection.php | Class | Class source |
WsServer.php | Class | Class source |
WsServerInterface.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests |
File | Role | Description | ||
---|---|---|---|---|
autobahn (3 files, 1 directory) | ||||
helpers (1 directory) | ||||
unit (1 file, 4 directories) | ||||
bootstrap.php | Example | Example script |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | autobahn |
File | Role | Description | ||
---|---|---|---|---|
bin (1 file) | ||||
fuzzingclient-all.json | Data | Auxiliary data | ||
fuzzingclient-profile.json | Data | Auxiliary data | ||
fuzzingclient-quick.json | Data | Auxiliary data |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | autobahn | / | bin |
File | Role | Description |
---|---|---|
fuzzingserver.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers |
File | Role | Description | ||
---|---|---|---|---|
Ratchet (2 files, 3 directories) |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet |
File | Role | Description | ||
---|---|---|---|---|
Mock (4 files) | ||||
Wamp (1 directory) | ||||
WebSocket (1 directory) | ||||
AbstractMessageComponentTestCase.php | Class | Class source | ||
NullComponent.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet | / | Mock |
File | Role | Description |
---|---|---|
Component.php | Class | Class source |
Connection.php | Class | Class source |
ConnectionDecorator.php | Class | Class source |
WampComponent.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet | / | Wamp |
File | Role | Description | ||
---|---|---|---|---|
Stub (1 file) |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet | / | Wamp | / | Stub |
File | Role | Description |
---|---|---|
WsWampServerInterface.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet | / | WebSocket |
File | Role | Description | ||
---|---|---|---|---|
Stub (1 file) |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | helpers | / | Ratchet | / | WebSocket | / | Stub |
File | Role | Description |
---|---|---|
WsMessageComponentInterface.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit |
File | Role | Description | ||
---|---|---|---|---|
Http (4 files) | ||||
Server (5 files) | ||||
Session (1 file, 2 directories) | ||||
Wamp (5 files) | ||||
AbstractConnectionDecoratorTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Http |
File | Role | Description |
---|---|---|
HttpRequestParserTest.php | Class | Class source |
HttpServerTest.php | Class | Class source |
OriginCheckTest.php | Class | Class source |
RouterTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Server |
File | Role | Description |
---|---|---|
EchoServerTest.php | Class | Class source |
FlashPolicyComponentTest.php | Class | Class source |
IoConnectionTest.php | Class | Class source |
IoServerTest.php | Class | Class source |
IpBlackListComponentTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Session |
File | Role | Description | ||
---|---|---|---|---|
Serialize (1 file) | ||||
Storage (1 file) | ||||
SessionComponentTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Session | / | Serialize |
File | Role | Description |
---|---|---|
PhpHandlerTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Session | / | Storage |
File | Role | Description |
---|---|---|
VirtualSessionStoragePDOTest.php | Class | Class source |
Files | / | vendor | / | cboden | / | ratchet | / | tests | / | unit | / | Wamp |
File | Role | Description |
---|---|---|
ServerProtocolTest.php | Class | Class source |
TopicManagerTest.php | Class | Class source |
TopicTest.php | Class | Class source |
WampConnectionTest.php | Class | Class source |
WampServerTest.php | Class | Class source |
Files | / | vendor | / | composer |
File | Role | Description |
---|---|---|
autoload_classmap.php | Aux. | Auxiliary script |
autoload_files.php | Aux. | Auxiliary script |
autoload_namespaces.php | Aux. | Auxiliary script |
autoload_psr4.php | Aux. | Auxiliary script |
autoload_real.php | Class | Class source |
autoload_static.php | Class | Class source |
ClassLoader.php | Class | Class source |
installed.json | Data | Auxiliary data |
installed.php | Aux. | Auxiliary script |
InstalledVersions.php | Class | Class source |
LICENSE | Lic. | License text |
platform_check.php | Aux. | Auxiliary script |
Files | / | vendor | / | evenement | / | evenement |
File | Role | Description | ||
---|---|---|---|---|
doc (3 files) | ||||
examples (5 files) | ||||
src (1 directory) | ||||
tests (1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Example | Example script |
Files | / | vendor | / | evenement | / | evenement | / | doc |
File | Role | Description |
---|---|---|
00-intro.md | Data | Auxiliary data |
01-api.md | Data | Auxiliary data |
02-plugin-system.md | Class | Class source |
Files | / | vendor | / | evenement | / | evenement | / | examples |
File | Role | Description |
---|---|---|
benchmark-emit-no-arguments.php | Example | Example script |
benchmark-emit-once.php | Example | Example script |
benchmark-emit-one-argument.php | Example | Example script |
benchmark-emit.php | Example | Example script |
benchmark-remove-listener-once.php | Example | Example script |
Files | / | vendor | / | evenement | / | evenement | / | src | / | Evenement |
File | Role | Description |
---|---|---|
EventEmitter.php | Class | Class source |
EventEmitterInterface.php | Class | Class source |
EventEmitterTrait.php | Class | Class source |
Files | / | vendor | / | evenement | / | evenement | / | tests | / | Evenement | / | Tests |
File | Role | Description |
---|---|---|
EventEmitterTest.php | Class | Class source |
functions.php | Aux. | Auxiliary script |
Listener.php | Class | Class source |
Files | / | vendor | / | guzzlehttp | / | psr7 |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (30 files) | ||||
.php_cs.dist | Example | Example script | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | guzzlehttp | / | psr7 | / | .github | / | workflows |
File | Role | Description |
---|---|---|
bc.yml | Data | Auxiliary data |
ci.yml | Data | Auxiliary data |
integration.yml | Data | Auxiliary data |
static.yml | Data | Auxiliary data |
Files | / | vendor | / | guzzlehttp | / | psr7 | / | src |
File | Role | Description |
---|---|---|
AppendStream.php | Class | Class source |
BufferStream.php | Class | Class source |
CachingStream.php | Class | Class source |
DroppingStream.php | Class | Class source |
FnStream.php | Class | Class source |
functions.php | Aux. | Auxiliary script |
functions_include.php | Aux. | Auxiliary script |
Header.php | Class | Class source |
InflateStream.php | Class | Class source |
LazyOpenStream.php | Class | Class source |
LimitStream.php | Class | Class source |
Message.php | Class | Class source |
MessageTrait.php | Class | Class source |
MimeType.php | Class | Class source |
MultipartStream.php | Class | Class source |
NoSeekStream.php | Class | Class source |
PumpStream.php | Class | Class source |
Query.php | Class | Class source |
Request.php | Class | Class source |
Response.php | Class | Class source |
Rfc7230.php | Class | Class source |
ServerRequest.php | Class | Class source |
Stream.php | Class | Class source |
StreamDecoratorTrait.php | Class | Class source |
StreamWrapper.php | Class | Class source |
UploadedFile.php | Class | Class source |
Uri.php | Class | Class source |
UriNormalizer.php | Class | Class source |
UriResolver.php | Class | Class source |
Utils.php | Class | Class source |
Files | / | vendor | / | psr | / | http-message |
File | Role | Description | ||
---|---|---|---|---|
src (7 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | psr | / | http-message | / | src |
File | Role | Description |
---|---|---|
MessageInterface.php | Class | Class source |
RequestInterface.php | Class | Class source |
ResponseInterface.php | Class | Class source |
ServerRequestInterface.php | Class | Class source |
StreamInterface.php | Class | Class source |
UploadedFileInterface.php | Class | Class source |
UriInterface.php | Class | Class source |
Files | / | vendor | / | ralouphie | / | getallheaders |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | ralouphie | / | getallheaders | / | src |
File | Role | Description |
---|---|---|
getallheaders.php | Aux. | Auxiliary script |
Files | / | vendor | / | ratchet | / | rfc6455 |
File | Role | Description | ||
---|---|---|---|---|
src (2 directories) | ||||
tests (2 files, 2 directories) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | ratchet | / | rfc6455 | / | src | / | Handshake |
File | Role | Description |
---|---|---|
ClientNegotiator.php | Class | Class source |
InvalidPermessageD...ptionsException.php | Class | Class source |
NegotiatorInterface.php | Class | Class source |
PermessageDeflateOptions.php | Class | Class source |
RequestVerifier.php | Class | Class source |
ResponseVerifier.php | Class | Class source |
ServerNegotiator.php | Class | Class source |
Files | / | vendor | / | ratchet | / | rfc6455 | / | src | / | Messaging |
File | Role | Description |
---|---|---|
CloseFrameChecker.php | Class | Class source |
DataInterface.php | Class | Class source |
Frame.php | Class | Class source |
FrameInterface.php | Class | Class source |
Message.php | Class | Class source |
MessageBuffer.php | Class | Class source |
MessageInterface.php | Class | Class source |
Files | / | vendor | / | ratchet | / | rfc6455 | / | tests |
File | Role | Description | ||
---|---|---|---|---|
ab (8 files) | ||||
unit (2 directories) | ||||
AbResultsTest.php | Class | Class source | ||
bootstrap.php | Example | Example script |
Files | / | vendor | / | ratchet | / | rfc6455 | / | tests | / | ab |
File | Role | Description |
---|---|---|
clientRunner.php | Example | Example script |
docker_bootstrap.sh | Data | Auxiliary data |
fuzzingclient.json | Data | Auxiliary data |
fuzzingclient_skip_deflate.json | Data | Auxiliary data |
fuzzingserver.json | Data | Auxiliary data |
fuzzingserver_skip_deflate.json | Data | Auxiliary data |
run_ab_tests.sh | Data | Auxiliary data |
startServer.php | Example | Example script |
Files | / | vendor | / | ratchet | / | rfc6455 | / | tests | / | unit | / | Handshake |
File | Role | Description |
---|---|---|
PermessageDeflateOptionsTest.php | Class | Class source |
RequestVerifierTest.php | Class | Class source |
ResponseVerifierTest.php | Class | Class source |
ServerNegotiatorTest.php | Class | Class source |
Files | / | vendor | / | ratchet | / | rfc6455 | / | tests | / | unit | / | Messaging |
File | Role | Description |
---|---|---|
FrameTest.php | Class | Class source |
MessageBufferTest.php | Class | Class source |
MessageTest.php | Class | Class source |
Files | / | vendor | / | react |
File | Role | Description | ||
---|---|---|---|---|
cache (4 files, 1 directory) | ||||
dns (4 files, 1 directory) | ||||
event-loop (4 files, 1 directory) | ||||
promise-timer (4 files, 1 directory) | ||||
promise (4 files, 1 directory) | ||||
socket (4 files, 1 directory) | ||||
stream (4 files, 1 directory) |
Files | / | vendor | / | react | / | cache |
File | Role | Description | ||
---|---|---|---|---|
src (2 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | cache | / | src |
File | Role | Description |
---|---|---|
ArrayCache.php | Class | Class source |
CacheInterface.php | Class | Class source |
Files | / | vendor | / | react | / | dns |
File | Role | Description | ||
---|---|---|---|---|
src (2 files, 5 directories) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | dns | / | src |
File | Role | Description | ||
---|---|---|---|---|
Config (2 files) | ||||
Model (2 files) | ||||
Protocol (2 files) | ||||
Query (12 files) | ||||
Resolver (3 files) | ||||
BadServerException.php | Class | Class source | ||
RecordNotFoundException.php | Class | Class source |
Files | / | vendor | / | react | / | dns | / | src | / | Config |
File | Role | Description |
---|---|---|
Config.php | Class | Class source |
HostsFile.php | Class | Class source |
Files | / | vendor | / | react | / | dns | / | src | / | Model |
File | Role | Description |
---|---|---|
Message.php | Class | Class source |
Record.php | Class | Class source |
Files | / | vendor | / | react | / | dns | / | src | / | Protocol |
File | Role | Description |
---|---|---|
BinaryDumper.php | Class | Class source |
Parser.php | Class | Class source |
Files | / | vendor | / | react | / | dns | / | src | / | Query |
File | Role | Description |
---|---|---|
CachingExecutor.php | Class | Class source |
CancellationException.php | Class | Class source |
CoopExecutor.php | Class | Class source |
ExecutorInterface.php | Class | Class source |
HostsFileExecutor.php | Class | Class source |
Query.php | Class | Class source |
RetryExecutor.php | Class | Class source |
SelectiveTransportExecutor.php | Class | Class source |
TcpTransportExecutor.php | Class | Class source |
TimeoutException.php | Class | Class source |
TimeoutExecutor.php | Class | Class source |
UdpTransportExecutor.php | Class | Class source |
Files | / | vendor | / | react | / | dns | / | src | / | Resolver |
File | Role | Description |
---|---|---|
Factory.php | Class | Class source |
Resolver.php | Class | Class source |
ResolverInterface.php | Class | Class source |
Files | / | vendor | / | react | / | event-loop |
File | Role | Description | ||
---|---|---|---|---|
src (10 files, 2 directories) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | event-loop | / | src |
File | Role | Description | ||
---|---|---|---|---|
Tick (1 file) | ||||
Timer (2 files) | ||||
ExtEventLoop.php | Class | Class source | ||
ExtEvLoop.php | Class | Class source | ||
ExtLibeventLoop.php | Class | Class source | ||
ExtLibevLoop.php | Class | Class source | ||
ExtUvLoop.php | Class | Class source | ||
Factory.php | Class | Class source | ||
LoopInterface.php | Class | Class source | ||
SignalsHandler.php | Class | Class source | ||
StreamSelectLoop.php | Class | Class source | ||
TimerInterface.php | Class | Class source |
Files | / | vendor | / | react | / | event-loop | / | src | / | Tick |
File | Role | Description |
---|---|---|
FutureTickQueue.php | Class | Class source |
Files | / | vendor | / | react | / | event-loop | / | src | / | Timer |
File | Role | Description |
---|---|---|
Timer.php | Class | Class source |
Timers.php | Class | Class source |
Files | / | vendor | / | react | / | promise-timer |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | promise-timer | / | src |
File | Role | Description |
---|---|---|
functions.php | Example | Example script |
functions_include.php | Aux. | Auxiliary script |
TimeoutException.php | Class | Class source |
Files | / | vendor | / | react | / | promise |
File | Role | Description | ||
---|---|---|---|---|
src (13 files, 1 directory) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | promise | / | src |
File | Role | Description | ||
---|---|---|---|---|
Exception (1 file) | ||||
CancellablePromiseInterface.php | Class | Class source | ||
CancellationQueue.php | Class | Class source | ||
Deferred.php | Class | Class source | ||
ExtendedPromiseInterface.php | Class | Class source | ||
FulfilledPromise.php | Class | Class source | ||
functions.php | Example | Example script | ||
functions_include.php | Aux. | Auxiliary script | ||
LazyPromise.php | Class | Class source | ||
Promise.php | Class | Class source | ||
PromiseInterface.php | Class | Class source | ||
PromisorInterface.php | Class | Class source | ||
RejectedPromise.php | Class | Class source | ||
UnhandledRejectionException.php | Class | Class source |
Files | / | vendor | / | react | / | promise | / | src | / | Exception |
File | Role | Description |
---|---|---|
LengthException.php | Class | Class source |
Files | / | vendor | / | react | / | socket |
File | Role | Description | ||
---|---|---|---|---|
src (19 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | socket | / | src |
File | Role | Description |
---|---|---|
Connection.php | Class | Class source |
ConnectionInterface.php | Class | Class source |
Connector.php | Class | Class source |
ConnectorInterface.php | Class | Class source |
DnsConnector.php | Class | Class source |
FixedUriConnector.php | Class | Class source |
HappyEyeBallsConnectionBuilder.php | Class | Class source |
HappyEyeBallsConnector.php | Class | Class source |
LimitingServer.php | Class | Class source |
SecureConnector.php | Class | Class source |
SecureServer.php | Class | Class source |
Server.php | Class | Class source |
ServerInterface.php | Class | Class source |
StreamEncryption.php | Class | Class source |
TcpConnector.php | Class | Class source |
TcpServer.php | Class | Class source |
TimeoutConnector.php | Class | Class source |
UnixConnector.php | Class | Class source |
UnixServer.php | Class | Class source |
Files | / | vendor | / | react | / | stream |
File | Role | Description | ||
---|---|---|---|---|
src (9 files) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | react | / | stream | / | src |
File | Role | Description |
---|---|---|
CompositeStream.php | Class | Class source |
DuplexResourceStream.php | Class | Class source |
DuplexStreamInterface.php | Class | Class source |
ReadableResourceStream.php | Class | Class source |
ReadableStreamInterface.php | Class | Class source |
ThroughStream.php | Class | Class source |
Util.php | Class | Class source |
WritableResourceStream.php | Class | Class source |
WritableStreamInterface.php | Class | Class source |
Files | / | vendor | / | symfony |
File | Role | Description | ||
---|---|---|---|---|
deprecation-contracts (5 files) | ||||
http-foundation (26 files, 5 directories) | ||||
polyfill-mbstring (6 files, 1 directory) | ||||
polyfill-php80 (5 files, 1 directory) | ||||
routing (14 files, 6 directories) |
Files | / | vendor | / | symfony | / | deprecation-contracts |
File | Role | Description |
---|---|---|
CHANGELOG.md | Data | Auxiliary data |
composer.json | Data | Auxiliary data |
function.php | Aux. | Auxiliary script |
LICENSE | Lic. | License text |
README.md | Doc. | Documentation |
Files | / | vendor | / | symfony | / | http-foundation |
File | Role | Description | ||
---|---|---|---|---|
Exception (6 files) | ||||
File (3 files, 1 directory) | ||||
RateLimiter (2 files) | ||||
Session (6 files, 3 directories) | ||||
Test (1 directory) | ||||
AcceptHeader.php | Class | Class source | ||
AcceptHeaderItem.php | Class | Class source | ||
BinaryFileResponse.php | Class | Class source | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
Cookie.php | Class | Class source | ||
ExpressionRequestMatcher.php | Class | Class source | ||
FileBag.php | Class | Class source | ||
HeaderBag.php | Class | Class source | ||
HeaderUtils.php | Class | Class source | ||
InputBag.php | Class | Class source | ||
IpUtils.php | Class | Class source | ||
JsonResponse.php | Class | Class source | ||
LICENSE | Lic. | License text | ||
ParameterBag.php | Class | Class source | ||
README.md | Doc. | Documentation | ||
RedirectResponse.php | Class | Class source | ||
Request.php | Class | Class source | ||
RequestMatcher.php | Class | Class source | ||
RequestMatcherInterface.php | Class | Class source | ||
RequestStack.php | Class | Class source | ||
Response.php | Class | Class source | ||
ResponseHeaderBag.php | Class | Class source | ||
ServerBag.php | Class | Class source | ||
StreamedResponse.php | Class | Class source | ||
UrlHelper.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Exception |
File | Role | Description |
---|---|---|
BadRequestException.php | Class | Class source |
ConflictingHeadersException.php | Class | Class source |
JsonException.php | Class | Class source |
RequestExceptionInterface.php | Class | Class source |
SessionNotFoundException.php | Class | Class source |
SuspiciousOperationException.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | File |
File | Role | Description | ||
---|---|---|---|---|
Exception (12 files) | ||||
File.php | Class | Class source | ||
Stream.php | Class | Class source | ||
UploadedFile.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | File | / | Exception |
File | Role | Description |
---|---|---|
AccessDeniedException.php | Class | Class source |
CannotWriteFileException.php | Class | Class source |
ExtensionFileException.php | Class | Class source |
FileException.php | Class | Class source |
FileNotFoundException.php | Class | Class source |
FormSizeFileException.php | Class | Class source |
IniSizeFileException.php | Class | Class source |
NoFileException.php | Class | Class source |
NoTmpDirFileException.php | Class | Class source |
PartialFileException.php | Class | Class source |
UnexpectedTypeException.php | Class | Class source |
UploadException.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | RateLimiter |
File | Role | Description |
---|---|---|
AbstractRequestRateLimiter.php | Class | Class source |
RequestRateLimiterInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session |
File | Role | Description | ||
---|---|---|---|---|
Attribute (3 files) | ||||
Flash (3 files) | ||||
Storage (11 files, 2 directories) | ||||
Session.php | Class | Class source | ||
SessionBagInterface.php | Class | Class source | ||
SessionBagProxy.php | Class | Class source | ||
SessionFactory.php | Class | Class source | ||
SessionInterface.php | Class | Class source | ||
SessionUtils.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session | / | Attribute |
File | Role | Description |
---|---|---|
AttributeBag.php | Class | Class source |
AttributeBagInterface.php | Class | Class source |
NamespacedAttributeBag.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session | / | Flash |
File | Role | Description |
---|---|---|
AutoExpireFlashBag.php | Class | Class source |
FlashBag.php | Class | Class source |
FlashBagInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session | / | Storage |
File | Role | Description | ||
---|---|---|---|---|
Handler (12 files) | ||||
Proxy (2 files) | ||||
MetadataBag.php | Class | Class source | ||
MockArraySessionStorage.php | Class | Class source | ||
MockFileSessionStorage.php | Class | Class source | ||
MockFileSessionStorageFactory.php | Class | Class source | ||
NativeSessionStorage.php | Class | Class source | ||
NativeSessionStorageFactory.php | Class | Class source | ||
PhpBridgeSessionStorage.php | Class | Class source | ||
PhpBridgeSessionStorageFactory.php | Class | Class source | ||
ServiceSessionFactory.php | Class | Class source | ||
SessionStorageFactoryInterface.php | Class | Class source | ||
SessionStorageInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session | / | Storage | / | Handler |
File | Role | Description |
---|---|---|
AbstractSessionHandler.php | Class | Class source |
IdentityMarshaller.php | Class | Class source |
MarshallingSessionHandler.php | Class | Class source |
MemcachedSessionHandler.php | Class | Class source |
MigratingSessionHandler.php | Class | Class source |
MongoDbSessionHandler.php | Class | Class source |
NativeFileSessionHandler.php | Class | Class source |
NullSessionHandler.php | Class | Class source |
PdoSessionHandler.php | Class | Class source |
RedisSessionHandler.php | Class | Class source |
SessionHandlerFactory.php | Class | Class source |
StrictSessionHandler.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Session | / | Storage | / | Proxy |
File | Role | Description |
---|---|---|
AbstractProxy.php | Class | Class source |
SessionHandlerProxy.php | Class | Class source |
Files | / | vendor | / | symfony | / | http-foundation | / | Test | / | Constraint |
File | Role | Description |
---|---|---|
RequestAttributeValueSame.php | Class | Class source |
ResponseCookieValueSame.php | Class | Class source |
ResponseFormatSame.php | Class | Class source |
ResponseHasCookie.php | Class | Class source |
ResponseHasHeader.php | Class | Class source |
ResponseHeaderSame.php | Class | Class source |
ResponseIsRedirected.php | Class | Class source |
ResponseIsSuccessful.php | Class | Class source |
ResponseStatusCodeSame.php | Class | Class source |
Files | / | vendor | / | symfony | / | polyfill-mbstring |
File | Role | Description | ||
---|---|---|---|---|
Resources (1 directory) | ||||
bootstrap.php | Aux. | Auxiliary script | ||
bootstrap80.php | Aux. | Auxiliary script | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
Mbstring.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | symfony | / | polyfill-mbstring | / | Resources | / | unidata |
File | Role | Description |
---|---|---|
lowerCase.php | Aux. | Auxiliary script |
titleCaseRegexp.php | Aux. | Auxiliary script |
upperCase.php | Aux. | Auxiliary script |
Files | / | vendor | / | symfony | / | polyfill-php80 |
File | Role | Description | ||
---|---|---|---|---|
Resources (1 directory) | ||||
bootstrap.php | Aux. | Auxiliary script | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
Php80.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files | / | vendor | / | symfony | / | polyfill-php80 | / | Resources | / | stubs |
File | Role | Description |
---|---|---|
Attribute.php | Class | Class source |
Stringable.php | Class | Class source |
UnhandledMatchError.php | Class | Class source |
ValueError.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing |
File | Role | Description | ||
---|---|---|---|---|
Annotation (1 file) | ||||
DependencyInjection (1 file) | ||||
Exception (7 files) | ||||
Generator (4 files, 1 directory) | ||||
Loader (11 files, 2 directories) | ||||
Matcher (8 files, 1 directory) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
CompiledRoute.php | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation | ||
RequestContext.php | Class | Class source | ||
RequestContextAwareInterface.php | Class | Class source | ||
Route.php | Class | Class source | ||
RouteCollection.php | Class | Class source | ||
RouteCollectionBuilder.php | Class | Class source | ||
RouteCompiler.php | Class | Class source | ||
RouteCompilerInterface.php | Class | Class source | ||
Router.php | Class | Class source | ||
RouterInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | DependencyInjection |
File | Role | Description |
---|---|---|
RoutingResolverPass.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Exception |
File | Role | Description |
---|---|---|
ExceptionInterface.php | Class | Class source |
InvalidParameterException.php | Class | Class source |
MethodNotAllowedException.php | Class | Class source |
MissingMandatoryParametersException.php | Class | Class source |
NoConfigurationException.php | Class | Class source |
ResourceNotFoundException.php | Class | Class source |
RouteNotFoundException.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Generator |
File | Role | Description | ||
---|---|---|---|---|
Dumper (3 files) | ||||
CompiledUrlGenerator.php | Class | Class source | ||
ConfigurableRequirementsInterface.php | Class | Class source | ||
UrlGenerator.php | Class | Class source | ||
UrlGeneratorInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Generator | / | Dumper |
File | Role | Description |
---|---|---|
CompiledUrlGeneratorDumper.php | Class | Class source |
GeneratorDumper.php | Class | Class source |
GeneratorDumperInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Loader |
File | Role | Description | ||
---|---|---|---|---|
Configurator (4 files, 1 directory) | ||||
schema (1 directory) | ||||
AnnotationClassLoader.php | Class | Class source | ||
AnnotationDirectoryLoader.php | Class | Class source | ||
AnnotationFileLoader.php | Class | Class source | ||
ClosureLoader.php | Class | Class source | ||
ContainerLoader.php | Class | Class source | ||
DirectoryLoader.php | Class | Class source | ||
GlobFileLoader.php | Class | Class source | ||
ObjectLoader.php | Class | Class source | ||
PhpFileLoader.php | Class | Class source | ||
XmlFileLoader.php | Class | Class source | ||
YamlFileLoader.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Loader | / | Configurator |
File | Role | Description | ||
---|---|---|---|---|
Traits (5 files) | ||||
CollectionConfigurator.php | Class | Class source | ||
ImportConfigurator.php | Class | Class source | ||
RouteConfigurator.php | Class | Class source | ||
RoutingConfigurator.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Loader | / | Configurator | / | Traits |
File | Role | Description |
---|---|---|
AddTrait.php | Class | Class source |
HostTrait.php | Class | Class source |
LocalizedRouteTrait.php | Class | Class source |
PrefixTrait.php | Class | Class source |
RouteTrait.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Loader | / | schema | / | routing |
File | Role | Description |
---|---|---|
routing-1.0.xsd | Data | Auxiliary data |
Files | / | vendor | / | symfony | / | routing | / | Matcher |
File | Role | Description | ||
---|---|---|---|---|
Dumper (5 files) | ||||
CompiledUrlMatcher.php | Class | Class source | ||
ExpressionLanguageProvider.php | Class | Class source | ||
RedirectableUrlMatcher.php | Class | Class source | ||
RedirectableUrlMatcherInterface.php | Class | Class source | ||
RequestMatcherInterface.php | Class | Class source | ||
TraceableUrlMatcher.php | Class | Class source | ||
UrlMatcher.php | Class | Class source | ||
UrlMatcherInterface.php | Class | Class source |
Files | / | vendor | / | symfony | / | routing | / | Matcher | / | Dumper |
File | Role | Description |
---|---|---|
CompiledUrlMatcherDumper.php | Class | Class source |
CompiledUrlMatcherTrait.php | Class | Class source |
MatcherDumper.php | Class | Class source |
MatcherDumperInterface.php | Class | Class source |
StaticPrefixCollection.php | Class | Class source |
socket-programming-u-2021-09-23.zip 716KB | |
socket-programming-u-2021-09-23.tar.gz 486KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.