Download the PHP package kadet/nucleus without Composer

On this page you can find all versions of the php package kadet/nucleus. 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 nucleus

Nucleus Logo

[WiP] Nucleus - XMPP Library for PHP

Packagist Milestone Travis Scrutinizer [Code Climate]() Scrutinizer Coverage

Asynchronous XMPP library for PHP based on React PHP. Library is still work in progress, so I don't recommend using it. It obsoletes my old kadet/xmpp package.

Already available

Modular Client class

By design client class (\Kadet\Xmpp\XmppClient) acts like stream - for sending and receiving packets over network, event emitter to inform about events, and dependency container (what a wonderful violation of SRP) for managing modules. It allows to move almost all logic outside of that class into proper and exchangeable components.

Basic client instance can be set up quite easily:

Options passed to second argument, are equivalent to C#'s property instantiation, so above example is same as calling:

With exception for modules and default-modules which are used for initial module setup. You can disable default modules by setting default-modules to false, but it's highly not recommended for non-test purposes.

Available events are:

also, all default events from react/stream are applicable.

TLS Handling

Most of XMPP servers require TLS connection, by default React streams don't support encryption. Library will handle encryption if underlying stream implements \Kadet\Xmpp\Network\SecureStream interface (provided stream classes like \Kadet\Xmpp\Network\TcpStream implements it by default).

(Better)Event API

Nucleus uses extended version of evenement/evenement to provide convenient EventEmitter API. So you can now filter events by predicates and event queue is prioritized.

Predicate, as well as callback is called with arguments passed to event. There are few default predicates that you can use, they can be found in Utils/Filter.php.

Also you can prioritize events

Sender argument is not provided by default, if needed you have to partially apply function, there is also shortcut in every event emitting class.

Event queue can be stopped by returning false by event.

Things to do

See roadmap on Trello, I'll keep it updated. Project is created in milestone system, it means that after completing each milestone API should be stable - but it's not guaranteed at the moment.


All versions of nucleus with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
react/stream Version ^0.4.3
react/event-loop Version ^0.4
evenement/evenement Version 2.0.*
psr/log Version 1.0.*
kadet/keylighter Version ^0.8
fabiang/sasl Version dev-rspauth
php-di/php-di Version ^5.3
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 kadet/nucleus contains the following files

Loading the files please wait ....