- Instalarea / configurarea
- Swoole Funcții
- swoole_async_dns_lookup — Async and non-blocking hostname to IP lookup
- swoole_async_read — Read file stream asynchronously
- swoole_async_readfile — Read a file asynchronously
- swoole_async_set — Update the async I/O options
- swoole_async_write — Write data to a file stream asynchronously
- swoole_async_writefile — Write data to a file asynchronously
- swoole_client_select — Get the file description which are ready to read/write or error
- swoole_cpu_num — Get the number of CPU
- swoole_errno — Get the error code of the latest system call
- swoole_event_add — Add new callback functions of a socket into the EventLoop
- swoole_event_defer — Add callback function to the next event loop
- swoole_event_del — Remove all event callback functions of a socket
- swoole_event_exit — Exit the eventloop, only available at the client side
- swoole_event_set — Update the event callback functions of a socket
- swoole_event_wait — Start the event loop
- swoole_event_write — Write data to a socket
- swoole_get_local_ip — Get the IPv4 IP addresses of each NIC on the machine
- swoole_last_error — Get the lastest error message
- swoole_load_module — Load a swoole extension
- swoole_select — Select the file descriptions which are ready to read/write or error in the eventloop
- swoole_set_process_name — Set the process name
- swoole_strerror — Convert the Errno into error messages
- swoole_timer_after — Trigger a one time callback function in the future
- swoole_timer_exists — Check if a timer callback function is existed
- swoole_timer_tick — Trigger a timer tick callback function by time interval
- swoole_version — Get the version of Swoole
- SwooleAsync — The SwooleAsync class
- SwooleAsync::dnsLookup — Async and non-blocking hostname to IP lookup.
- SwooleAsync::read — Read file stream asynchronously.
- SwooleAsync::readFile — Read a file asynchronously.
- SwooleAsync::set — Update the async I/O options.
- SwooleAsync::write — Write data to a file stream asynchronously.
- SwooleAsync::writeFile — Description
- SwooleAtomic — The SwooleAtomic class
- SwooleAtomic::add — Add a number to the value to the atomic object.
- SwooleAtomic::cmpset — Compare and set the value of the atomic object.
- SwooleAtomic::__construct — Construct a swoole atomic object.
- SwooleAtomic::get — Get the current value of the atomic object.
- SwooleAtomic::set — Set a new value to the atomic object.
- SwooleAtomic::sub — Subtract a number to the value of the atomic object.
- SwooleBuffer — The SwooleBuffer class
- SwooleBuffer::append — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated.
- SwooleBuffer::clear — Reset the memory buffer.
- SwooleBuffer::__construct — Fixed size memory blocks allocation.
- SwooleBuffer::__destruct — Destruct the Swoole memory buffer.
- SwooleBuffer::expand — Expand the size of memory buffer.
- SwooleBuffer::read — Read data from the memory buffer based on offset and length.
- SwooleBuffer::recycle — Release the memory to OS which is not used by the memory buffer.
- SwooleBuffer::substr — Read data from the memory buffer based on offset and length. Or remove data from the memory buffer.
- SwooleBuffer::__toString — Get the string value of the memory buffer.
- SwooleBuffer::write — Write data to the memory buffer. The memory allocated for the buffer will not be changed.
- SwooleChannel — The SwooleChannel class
- SwooleChannel::__construct — Construct a Swoole Channel
- SwooleChannel::__destruct — Destruct a Swoole channel.
- SwooleChannel::pop — Read and pop data from swoole channel.
- SwooleChannel::push — Write and push data into Swoole channel.
- SwooleChannel::stats — Get stats of swoole channel.
- SwooleClient — The SwooleClient class
- SwooleClient::close — Close the connection established.
- SwooleClient::connect — Connect to the remote TCP or UDP port.
- SwooleClient::__construct — Create Swoole sync or async TCP/UDP client, with or without SSL.
- SwooleClient::__destruct — Destruct the Swoole client.
- SwooleClient::getpeername — Get the remote socket name of the connection.
- SwooleClient::getsockname — Get the local socket name of the connection.
- SwooleClient::isConnected — Check if the connection is established.
- SwooleClient::on — Add callback functions triggered by events.
- SwooleClient::pause — Pause receiving data.
- SwooleClient::pipe — Redirect the data to another file descriptor.
- SwooleClient::recv — Receive data from the remote socket.
- SwooleClient::resume — Resume receiving data.
- SwooleClient::send — Send data to the remote TCP socket.
- SwooleClient::sendfile — Send file to the remote TCP socket.
- SwooleClient::sendto — Send data to the remote UDP address.
- SwooleClient::set — Set the Swoole client parameters before the connection is established.
- SwooleClient::sleep — Remove the TCP client from system event loop.
- SwooleClient::wakeup — Add the TCP client back into the system event loop.
- SwooleConnectionIterator — The SwooleConnectionIterator class
- SwooleConnectionIterator::count — Count connections.
- SwooleConnectionIterator::current — Return current connection entry.
- SwooleConnectionIterator::key — Return key of the current connection.
- SwooleConnectionIterator::next — Move to the next connection.
- SwooleConnectionIterator::offsetExists — Check if offet exists.
- SwooleConnectionIterator::offsetGet — Offset to retrieve.
- SwooleConnectionIterator::offsetSet — Assign a Connection to the specified offset.
- SwooleConnectionIterator::offsetUnset — Unset an offset.
- SwooleConnectionIterator::rewind — Rewinds iterator
- SwooleConnectionIterator::valid — Check if current position is valid.
- SwooleCoroutine — The SwooleCoroutine class
- SwooleCoroutine::call_user_func_array — Call a callback with an array of parameters
- SwooleCoroutine::call_user_func — Call a callback given by the first parameter
- SwooleCoroutine::cli_wait — Description
- SwooleCoroutine::create — Description
- SwooleCoroutineClient::close — Description
- SwooleCoroutineClient::connect — Description
- SwooleCoroutineClient::__construct — Description
- SwooleCoroutineClient::__destruct — Description
- SwooleCoroutineClient::getpeername — Description
- SwooleCoroutineClient::getsockname — Description
- SwooleCoroutineClient::isConnected — Description
- SwooleCoroutineClient::recv — Description
- SwooleCoroutineClient::send — Description
- SwooleCoroutineClient::sendfile — Description
- SwooleCoroutineClient::sendto — Description
- SwooleCoroutineClient::set — Description
- SwooleCoroutineHttpClient::addFile — Description
- SwooleCoroutineHttpClient::close — Description
- SwooleCoroutineHttpClient::__construct — Description
- SwooleCoroutineHttpClient::__destruct — Description
- SwooleCoroutineHttpClient::execute — Description
- SwooleCoroutineHttpClient::get — Description
- SwooleCoroutineHttpClient::getDefer — Description
- SwooleCoroutineHttpClient::isConnected — Description
- SwooleCoroutineHttpClient::post — Description
- SwooleCoroutineHttpClient::recv — Description
- SwooleCoroutineHttpClient::set — Description
- SwooleCoroutineHttpClient::setCookies — Description
- SwooleCoroutineHttpClient::setData — Description
- SwooleCoroutineHttpClient::setDefer — Description
- SwooleCoroutineHttpClient::setHeaders — Description
- SwooleCoroutineHttpClient::setMethod — Description
- SwooleCoroutineMySQL::close — Description
- SwooleCoroutineMySQL::connect — Description
- SwooleCoroutineMySQL::__construct — Description
- SwooleCoroutineMySQL::__destruct — Description
- SwooleCoroutineMySQL::getDefer — Description
- SwooleCoroutineMySQL::query — Description
- SwooleCoroutineMySQL::recv — Description
- SwooleCoroutineMySQL::setDefer — Description
- SwooleCoroutine::getuid — Description
- SwooleCoroutine::resume — Description
- SwooleCoroutine::suspend — Description
- SwooleEvent — The SwooleEvent class
- SwooleEvent::add — Add new callback functions of a socket into the EventLoop.
- SwooleEvent::defer — Add a callback function to the next event loop.
- SwooleEvent::del — Remove all event callback functions of a socket.
- SwooleEvent::exit — Exit the eventloop, only available at client side.
- SwooleEvent::set — Update the event callback functions of a socket.
- SwooleEvent::wait — Description
- SwooleEvent::write — Write data to the socket.
- SwooleException — The SwooleException class
- SwooleHttpClient — The SwooleHttpClient class
- SwooleHttpClient::addFile — Add a file to the post form.
- SwooleHttpClient::close — Close the http connection.
- SwooleHttpClient::__construct — Construct the async HTTP client.
- SwooleHttpClient::__destruct — Destruct the HTTP client.
- SwooleHttpClient::download — Download a file from the remote server.
- SwooleHttpClient::execute — Send the HTTP request after setting the parameters.
- SwooleHttpClient::get — Send GET http request to the remote server.
- SwooleHttpClient::isConnected — Check if the HTTP connection is connected.
- SwooleHttpClient::on — Register callback function by event name.
- SwooleHttpClient::post — Send POST http request to the remote server.
- SwooleHttpClient::push — Push data to websocket client.
- SwooleHttpClient::set — Update the HTTP client paramters.
- SwooleHttpClient::setCookies — Set the http request cookies.
- SwooleHttpClient::setData — Set the HTTP request body data.
- SwooleHttpClient::setHeaders — Set the HTTP request headers.
- SwooleHttpClient::setMethod — Set the HTTP request method.
- SwooleHttpClient::upgrade — Upgrade to websocket protocol.
- SwooleHttpRequest — The SwooleHttpRequest class
- SwooleHttpRequest::__destruct — Destruct the HTTP request.
- SwooleHttpRequest::rawcontent — Get the raw HTTP POST body.
- SwooleHttpResponse — The SwooleHttpResponse class
- SwooleHttpResponse::cookie — Set the cookies of the HTTP response.
- SwooleHttpResponse::__destruct — Destruct the HTTP response.
- SwooleHttpResponse::end — Send data for the HTTP request and finish the response.
- SwooleHttpResponse::gzip — Enable the gzip of response content.
- SwooleHttpResponse::header — Set the HTTP response headers.
- SwooleHttpResponse::initHeader — Init the HTTP response header.
- SwooleHttpResponse::rawcookie — Set the raw cookies to the HTTP response.
- SwooleHttpResponse::sendfile — Send file through the HTTP response.
- SwooleHttpResponse::status — Set the status code of the HTTP response.
- SwooleHttpResponse::write — Append HTTP body content to the HTTP response.
- SwooleHttpServer — The SwooleHttpServer class
- SwooleHttpServer::on — Bind callback function to HTTP server by event name.
- SwooleHttpServer::start — Start the swoole http server.
- SwooleLock — The SwooleLock class
- SwooleLock::__construct — Construct a memory lock.
- SwooleLock::__destruct — Destory a Swoole memory lock.
- SwooleLock::lock_read — Lock a read-write lock for reading.
- SwooleLock::lock — Try to acquire the lock. It will block if the lock is not available.
- SwooleLock::trylock_read — Try to lock a read-write lock for reading and return straight away even the lock is not available.
- SwooleLock::trylock — Try to acquire the lock and return straight away even the lock is not available.
- SwooleLock::unlock — Release the lock.
- SwooleMmap — The SwooleMmap class
- SwooleMmap::open — Map a file into memory and return the stream resource which can be used by PHP stream operations.
- SwooleMySQL — The SwooleMySQL class
- SwooleMySQL::close — Close the async MySQL connection.
- SwooleMySQL::connect — Connect to the remote MySQL server.
- SwooleMySQL::__construct — Construct an async MySQL client.
- SwooleMySQL::__destruct — Destory the async MySQL client.
- SwooleMySQL::getBuffer — Description
- SwooleMySQL::on — Register callback function based on event name.
- SwooleMySQL::query — Run the SQL query.
- SwooleMySQLException — The SwooleMySQLException class
- SwooleProcess — The SwooleProcess class
- SwooleProcess::alarm — High precision timer which triggers signal with fixed interval.
- SwooleProcess::close — Close the pipe to the child process.
- SwooleProcess::__construct — Construct a process.
- SwooleProcess::daemon — Change the process to be a daemon process.
- SwooleProcess::__destruct — Destory the process.
- SwooleProcess::exec — Execute system commands.
- SwooleProcess::exit — Stop the child processes.
- SwooleProcess::freeQueue — Destroy the message queue created by swoole_process::useQueue.
- SwooleProcess::kill — Send signal to the child process.
- SwooleProcess::name — Set name of the process.
- SwooleProcess::pop — Read and pop data from the message queue.
- SwooleProcess::push — Write and push data into the message queue.
- SwooleProcess::read — Read data sending to the process.
- SwooleProcess::signal — Send signal to the child processes.
- SwooleProcess::start — Start the process.
- SwooleProcess::statQueue — Get the stats of the message queue used as the communication method between processes.
- SwooleProcess::useQueue — Create a message queue as the communication method between the parent process and child processes.
- SwooleProcess::wait — Wait for the events of child processes.
- SwooleProcess::write — Write data into the pipe and communicate with the parent process or child processes.
- SwooleRedisServer — The SwooleRedisServer class
- SwooleRedisServer::format — Description
- SwooleRedisServer::setHandler — Description
- SwooleRedisServer::start — Description
- SwooleSerialize — The SwooleSerialize class
- SwooleSerialize::pack — Serialize the data.
- SwooleSerialize::unpack — Unserialize the data.
- SwooleServer — The SwooleServer class
- SwooleServer::addlistener — Add a new listener to the server.
- SwooleServer::addProcess — Add a user defined swoole_process to the server.
- SwooleServer::after — Trigger a callback function after a period of time.
- SwooleServer::bind — Bind the connection to a user defined user ID.
- SwooleServer::clearTimer — Stop and destory a timer.
- SwooleServer::close — Close a connection to the client.
- SwooleServer::confirm — Check status of the connection.
- SwooleServer::connection_info — Get the connection info by file description.
- SwooleServer::connection_list — Get all of the established connections.
- SwooleServer::__construct — Construct a Swoole server.
- SwooleServer::defer — Delay execution of the callback function at the end of current EventLoop.
- SwooleServerPort::__construct — Construct a server port
- SwooleServerPort::__destruct — Destory server port
- SwooleServerPort::on — Register callback functions by event.
- SwooleServerPort::set — Set protocol of the server port.
- SwooleServer::exist — Check if the connection is existed.
- SwooleServer::finish — Used in task process for sending result to the worker process when the task is finished.
- SwooleServer::getClientInfo — Get the connection info by file description.
- SwooleServer::getClientList — Get all of the established connections.
- SwooleServer::getLastError — Get the error code of the most recent error.
- SwooleServer::heartbeat — Check all the connections on the server.
- SwooleServer::listen — Listen on the given IP and port, socket type.
- SwooleServer::on — Register a callback function by event name.
- SwooleServer::pause — Stop receiving data from the connection.
- SwooleServer::protect — Set the connection to be protected mode.
- SwooleServer::reload — Restart all the worker process.
- SwooleServer::resume — Start receving data from the connection.
- SwooleServer::send — Send data to the client.
- SwooleServer::sendfile — Send file to the connection.
- SwooleServer::sendMessage — Send message to worker processes by ID.
- SwooleServer::sendto — Send data to the remote UDP address.
- SwooleServer::sendwait — Send data to the remote socket in the blocking way.
- SwooleServer::set — Set the runtime settings of the swoole server.
- SwooleServer::shutdown — Shutdown the master server process, this function can be called in worker processes.
- SwooleServer::start — Start the Swoole server.
- SwooleServer::stats — Get the stats of the Swoole server.
- SwooleServer::stop — Stop the Swoole server.
- SwooleServer::task — Send data to the task worker processes.
- SwooleServer::taskwait — Send data to the task worker processes in blocking way.
- SwooleServer::taskWaitMulti — Execute multiple tasks concurrently.
- SwooleServer::tick — Repeats a given function at every given time-interval.
- SwooleTable — The SwooleTable class
- SwooleTable::column — Set the data type and size of the columns.
- SwooleTable::__construct — Construct a Swoole memory table with fixed size.
- SwooleTable::count — Count the rows in the table, or count all the elements in the table if $mode = 1.
- SwooleTable::create — Create the swoole memory table.
- SwooleTable::current — Get the current row.
- SwooleTable::decr — Decrement the value in the Swoole table by $row_key and $column_key.
- SwooleTable::del — Delete a row in the Swoole table by $row_key.
- SwooleTable::destroy — Destroy the Swoole table.
- SwooleTable::exist — Check if a row is existed by $row_key.
- SwooleTable::get — Get the value in the Swoole table by $row_key and $column_key.
- SwooleTable::incr — Increment the value by $row_key and $column_key.
- SwooleTable::key — Get the key of current row.
- SwooleTable::next — Iterator the next row.
- SwooleTable::rewind — Rewind the iterator.
- SwooleTable::set — Update a row of the table by $row_key.
- SwooleTable::valid — Check current if the current row is valid.
- SwooleTimer — The SwooleTimer class
- SwooleTimer::after — Trigger a callback function after a period of time.
- SwooleTimer::clear — Delete a timer by timer ID.
- SwooleTimer::exists — Check if a timer is existed.
- SwooleTimer::tick — Repeats a given function at every given time-interval.
- SwooleWebSocketFrame — The SwooleWebSocketFrame class
- SwooleWebSocketServer — The SwooleWebSocketServer class
- SwooleWebSocketServer::exist — Check if the file descriptor exists.
- SwooleWebSocketServer::on — Register event callback function
- SwooleWebSocketServer::pack — Get a pack of binary data to send in a single frame.
- SwooleWebSocketServer::push — Push data to the remote client.
- SwooleWebSocketServer::unpack — Unpack the binary data received from the client.
Therefore, there is only one conclusion that I can arrive at: for Swoole maintainers, the introduction of fibers, which allows other projects like AMP, ReactPHP, Symfony, Guzzle, Psalm, etc. To utilize them for improvements, would drastically reduce the value they provide (being one of the only ones to have such a native system at this time) to. Swoole IDE Helper. Auto completion, trigger suggest and view docs for Swoole in editor. The purpose of avoid the tips of undefined and improve work efficiency. Usage Composer (recommended): composer require -dev 'eaglewu/swoole-ide-helper:dev-master' Text editor: Put the source code in your project. Put the source code path into. Blackfire.io: Continuous Performance Testing. As of 2020.1, PHPStorm provides stubs for BlackfireProbe internal class, which is provided by the Blackfire extension.These stubs gives you code completion on all available methods of BlackfireProbe class. Simple-swoole/simps — Yet another Swoole-based framework. According to the benchmarks, it is the fastest one written in PHP. Your JetBrains PhpStorm team.
Phpstorm Swoole-ide-helper
- Alte extensii de bază