Download the PHP package allstak/sdk-symfony without Composer

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

AllStak Symfony Bundle

Official AllStak bundle for Symfony 6.4 and 7.x. Drop-in, fully automatic observability with near-zero configuration: install, set your API key, and the bundle auto-captures errors, inbound and outbound HTTP, database queries, logs, traces and spans, breadcrumbs, console commands, and Messenger messages.

Built on top of the allstak/sdk-php core client — this bundle does not reimplement transport, it wires the core SDK into the Symfony container and event system.

Install

With Symfony Flex the bundle is registered automatically. Without Flex, add it to config/bundles.php:

Configure

The only thing you need is an API key. Set it in the environment:

That is the entire zero-config path. The bundle reads ALLSTAK_API_KEY on boot and turns every integration ON. For more control, add config/packages/allstak.yaml:

Every integration is ON by default and individually toggleable. Optional framework pieces (console, messenger, Doctrine DBAL, HTTP client, Monolog) self-disable gracefully when their package is not installed.

What gets captured automatically

Area Mechanism
Unhandled errors kernel.exception capture with full request context
Inbound HTTP kernel.response http-request record (method, path, host, status, time)
Request spans kernel.request -> kernel.response server span, joined to inbound trace
Breadcrumbs controller resolution, console commands, messages, logs
Outbound HTTP decorated HttpClientInterface: record + span + trace-propagation header
Database queries Doctrine DBAL driver middleware: normalized query, duration, status
Logs Monolog handler: ships logs, ERROR+ with an exception becomes a capture
Console commands ConsoleEvents span + error capture on non-zero exit
Messenger middleware span per handled message + error capture on handler failure
Buffer flush kernel.terminate / console terminate drains buffers after the response

Manual API (bonus)

Auto-instrumentation is the primary path. When you want explicit control, the core SDK service is autowirable:

You can also use the static facade AllStak\Facade anywhere after boot.

Outbound HTTP & trace propagation

The bundle decorates the framework http_client service, so any autowired HttpClientInterface call is recorded and carries a trace-propagation baggage header automatically. No code changes are needed:

Doctrine DBAL

When doctrine/dbal is installed, the bundle registers a DBAL driver middleware (the modern, non-deprecated instrumentation seam). DoctrineBundle picks it up via the doctrine.middleware tag and applies it to every connection, so queries are recorded with zero changes to your repositories.

Messenger

The bundle prepends its middleware onto the default message bus, so handled messages are instrumented automatically. If you define custom buses, add allstak.messenger_middleware to that bus's middleware list.

Local development against the core SDK

For local builds before the package is published, add a path repository so the core client resolves from your checkout:

The release require uses the published package:

Requirements

License

MIT


All versions of sdk-symfony with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
allstak/sdk-php Version ^1.4
symfony/config Version ^6.4|^7.0
symfony/dependency-injection Version ^6.4|^7.0
symfony/http-kernel Version ^6.4|^7.0
symfony/event-dispatcher Version ^6.4|^7.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 allstak/sdk-symfony contains the following files

Loading the files please wait ...