Download the PHP package wor/sockets without Composer

On this page you can find all versions of the php package wor/sockets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sockets

About laravel-sockets

This project is a good place to start for developing an application that is requires to retrieve or send data via UDP/TCP Sockets .

Requirements

Quick Install

OR

add wor/sockets:"^1.0" to your require list in the composer.json file.

Service Provider & Facade (Optional on Laravel 5.5+)

Register provider and facade on your config/app.php file.

Configuration (Optional)

Debugging Mode

To enable debugging mode, just set SOCKET_DEBUG=true and the package will echo the raw payload being sent and received across Sockets.

IMPORTANT: Please make sure that SOCKET_DEBUG is set to false when your app is on production.

Usage

Basic Usage

  1. Add the default socket remote to your .env file

  2. In Laravel or during a tinker session

Intended Usage

This package is intended to be extended. There are two basic concepts at play here : Sockets & Requests.

Sockets

Sockets are the basic communication layer. They should are meant to be extended to include any frame wrapping or encoding that you may want to use or that the receiving service expects.

They should extend the base Socket class and implement the SocketInterface.

In short you should implement the read & write methods to match your expected I/O.

Requests

Requests are meant to encapsulate an action that is performed. They should match the endpoints provided by the service you're working with. Think of them as database transactions. Once you setup the payload and make the request it performs a write and read on the provided socket and returns a parsed result.

Requests extend the base Request class and implement the RequestInterface.

Then you are free to instantiate new requests and run them against your socket service.

In fact you can take it one step further and create action requests based on your new genetic service request.

Any Issues?

If you discover any errors feel free to report them in the issue tracker.


All versions of sockets with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.1
illuminate/support Version 5.5.*|5.6.*|5.7.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wor/sockets contains the following files

Loading the files please wait ....