Download the PHP package flezha/sdk without Composer

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

flezha/sdk

The Flezha PHP SDK, a poll host over flz_core's C ABI through ext-ffi. The SDK contains no kernel code: transport, framing, ordering, per-cell exclusivity, durability, retries, timers, credit, routing, steps runs and reconnect all live in the core. This package brings the authoring surface, the codec for user types, the concurrency host and idiomatic errors.

Support tier: tier 2, passes the full conformance run in CI exactly as tier 1 does, with every capability present but local_send, which its single-threaded serving defers, and is permanently supported; it is not yet run by the maintainer in a live deployment, so a defect specific to it is likely to be found by its users first.

examples/echo is the smallest complete runner.

Install

To work on the SDK itself, install it from a checkout as examples/echo shows.

The package is also a Composer plugin, which fetches the native library below. Composer asks once whether to trust it, and a non-interactive install needs it allowed in the project's composer.json:

Supported PHP versions

PHP 8.4 or newer, with ext-ffi and ext-mbstring. 8.4 is the line the SDK is built, tested and benchmarked on. The optional SwooleExecutor also needs ext-swoole 6, built against a thread-safe PHP with --enable-swoole-thread; it is checked when it is selected, not at install. The default SyncExecutor needs nothing beyond ext-ffi.

The native library

As Composer installs the package, its plugin downloads the one libflz_core_ffi binary the host needs from the GitHub release matching the package's version, checks it against that release's SHA-256 manifest, and places it in the package's lib/<platform>/. Releases carry it for linux-x64, linux-arm64, macos-x64, macos-arm64 and windows-x64. A failed download or a checksum mismatch refuses the install rather than leave a package that cannot load.

FLEZHA_NATIVE_LIB_DIR names a directory to load the binary from in preference to the package's own. When it already holds the binary at install, nothing is downloaded, which is how an offline install works. An install that skipped the plugin has no binary, and the first call into the core refuses naming how to finish: allow the plugin and run composer reinstall flezha/sdk, or fetch the binary by hand as the message says.

Local mode, testing and the relay API

Full documentation: the PHP SDK guide.

Licensed under Apache-2.0.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-ffi Version *
ext-mbstring Version *
composer-plugin-api Version ^2.0
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 flezha/sdk contains the following files

Loading the files please wait ...