Download the PHP package koh/poppy without Composer

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

koh/poppy

A framework-agnostic PHP server for the Personal Agent Protocol (Poppy), draft 0.2: the protocol through which a person's own AI agent works with a company on their behalf. The agent discovers what the company offers, starts a Session, browses its website and calls its APIs in that Session, and signs in to the person's account only when a task needs it — with the person approving on the company's own page.

This package is the company side. It has no framework dependency and no global state: it speaks PSR-7, PSR-17, PSR-18 and PSR-20, and leaves storage, pages and routing to the integration. Integrations exist for Sylius and TYPO3.

What it covers

Section of the specification Here
3 Discovery PoppyDocument (/.well-known/poppy.json) and AuthorizationServerMetadata (RFC 8414, with poppy_domains for the issuer binding)
4.1 Agent identity ClientMetadataResolver, ClientAuthenticator — client ID metadata documents, private_key_jwt, aud pinned to the issuer
4.2 Sessions TokenEndpoint, JWT bearer grant, session_id, renewal
4.3 DPoP DpopVerifier (RFC 9449), Bearer tokens only for MCP servers without DPoP
4.5 Direct Sign-In DirectSignIn — authorization code with PKCE S256 and RFC 9207 iss
4.6 Device Sign-In DeviceAuthorizationEndpoint, DeviceVerification (RFC 8628)
4.8–4.9 Account Tokens, sign-out refresh_token grant, RevocationEndpoint, AccountDisconnector
5 Web browsing BrowserSessions — browser assertions; the integration sets its own cookie
6 APIs ResourceGuard, SessionContext, Challenge (WWW-Authenticate)
8 Feedback FeedbackEndpoint

Not covered: Mediated Sign-In (4.7), in which the agent sends the person's password to the company, and conversations with a Company Agent (section 7). A company that offers neither is fully conformant; the discovery document only declares what is wired up.

The checks that matter

Usage

The integration provides the pages a person sees — sign-in and consent for Direct Sign-In, code entry for Device Sign-In, the account page where Personal Agents are disconnected — and calls DirectSignIn, DeviceVerification and AccountDisconnector from them.

Storage on Doctrine DBAL

Storage\Dbal\DbalStorage, DbalReplayGuard and DbalFeedbackSink implement the storage ports on DBAL 3.10 or 4 — the DBAL both Sylius and TYPO3 run on. PoppySchema::addTo($schema, $prefix) describes the tables, for a Doctrine migration or as the source of a TYPO3 ext_tables.sql. The single-use operations are atomic in the database itself: the replay guard on a primary key, codes and device approvals on the affected-row count of the statement that takes them. SymfonyRateLimiter adapts symfony/rate-limiter.

What the integration must get right

Requirements

PHP 8.3 or later with openssl and sodium, a PSR-18 client and PSR-17 factories.

Independence

This is an independent implementation, written from the Personal Agent Protocol specification. It is not affiliated with the authors of the specification.

Licence

MIT. See LICENSE.


All versions of poppy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
ext-sodium Version *
psr/clock Version ^1.0
psr/http-client Version ^1.0.3
psr/http-factory Version ^1.1.0
psr/http-message Version ^1.1 || ^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 koh/poppy contains the following files

Loading the files please wait ...