Download the PHP package distantmagic/resonance without Composer

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

Resonance

About Resonance

Resonance is designed from the ground up to facilitate interoperability and messaging between services in your infrastructure and beyond. It provides AI capabilities, has a built in web server and integrates with llama.cpp.

Takes full advantage of asynchronous PHP. Built on top of Swoole.

Why Resonance?

Predictable Performance

Resonance is designed with a few priorities: no memory leaks, blocking operations, and garbage collector surprises.

Most of the internals are read-only and stateless. After the application startup, nothing disturbs JIT and opcode (Reflection is only used during the application startup), so there are no surprise slowdowns during runtime.

Opinionated

All the libraries under the hood have been thoroughly tested to ensure they work together correctly, complement each other, and work perfectly under async environments.

For example, Resonance implements custom Doctrine drivers, so it uses Swoole's connection pools.

Resolves Input/Output Issues

Resonance is designed to handle IO-intensive tasks, such as serving Machine Learning models, handling WebSocket connections, and processing long-running HTTP requests.

It views modern applications as a mix of services that communicate with each other asynchronously, including AI completions and ML inferences, so it provides a set of tools to make this communication as easy as possible.

Complete Package

Resonance includes everything you need to build a modern web application, from the HTTP server to the AI capabilities.

It provides security features, HTML templating, integration with open-source LLMs, and provides capability to serve ML models.

Documentation

https://resonance.distantmagic.com/

Installation

It's best to install Resonance by using Composer's create-project command:

Resonance requires minimum 8.2 version of PHP, as well as Data Structures and Swoole extensions. Read more about required and recommended extensions, as well as other installation methods in our installation guide.

First-time use

You'll need to create a config.ini file after installing the project (config.ini.example is provided) and then use bin/resonance.php as an entry point.

Running the server

php bin/resonance.php serve starts the built-in HTTP server. If you need to, you can generate the SSL Certificate for Local Development.

Features

Chat with Open-Source LLMs

Create prompt controllers to directly answer user's prompts.

LLM takes care of determining user's intention, you can focus on taking an appropriate action.

Asynchronous Where it Matters

Respond asynchronously to incoming RPC or WebSocket messages (or both combined) with little overhead.

You can set up all the asynchronous features using attributes. No elaborate configuration is needed.

Simple Things Remain Simple

Writing HTTP controllers is similar to how it's done in the synchronous code.

Controllers have new exciting features that take advantage of the asynchronous environment.

Consistency is Key

You can keep the same approach to writing software no matter the size of your project.

There are no growing central configuration files or service dependencies registries. Every relation between code modules is local to those modules.

Promises in PHP

Resonance provides a partial implementation of Promise/A+ spec to handle various asynchronous tasks.

GraphQL Out of the Box

You can build elaborate GraphQL schemas by using just the PHP attributes.

Resonance takes care of reusing SQL queries and optimizing the resources' usage.

All fields can be resolved asynchronously.

Tutorials

Community

You can find official channels here:

License

The Resonance framework is open-sourced software licensed under the MIT license.


All versions of resonance with dependencies

PHP Build Version
Package Version
Requires defuse/php-encryption Version ^2.4
distantmagic/graphql-swoole-promise-adapter Version ^0.1.1
distantmagic/swoole-futures Version ^0.1.2
doctrine/dbal Version ^4.0
doctrine/migrations Version ^3.6
doctrine/orm Version ^3.0
doctrine/sql-formatter Version ^1.2
dragonmantank/cron-expression Version ^3.3
ezyang/htmlpurifier Version ^4.16
grpc/grpc Version ^1.57
hyperf/coroutine Version ^3.1
hyperf/grpc-client Version ^3.1
league/commonmark Version ^2.4
league/oauth2-client Version ^2.7
league/oauth2-server Version ^8.5
nette/php-generator Version ^4.1
nicmart/tree Version ^0.8.0
nyholm/psr7 Version ^1.8
nyholm/psr7-server Version ^1.1
php Version >=8.2
psr/container Version ^2.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/log Version ^3.0
ramsey/uuid Version ^4.7
symfony/console Version ^7.0
symfony/doctrine-bridge Version ^7.0
symfony/event-dispatcher Version ^7.0
symfony/expression-language Version ^7.0
symfony/filesystem Version ^7.0
symfony/finder Version ^7.0
symfony/http-client Version ^7.0
symfony/http-foundation Version ^7.0
symfony/mailer Version ^7.0
symfony/messenger Version ^7.0
symfony/routing Version ^7.0
symfony/uid Version ^7.0
symfony/yaml Version ^7.0
twig/cache-extra Version ^3.7
twig/twig Version ^3.7
webonyx/graphql-php Version ^15.6
beberlei/assert Version ^3.3
dunglas/doctrine-json-odm Version ^1.4
rubix/ml Version ^2.5
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 distantmagic/resonance contains the following files

Loading the files please wait ....