Download the PHP package fissible/drift without Composer

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

fissible/drift

OpenAPI drift detection and version analysis for PHP. Compares your live API routes against their spec, recommends semver bumps, and generates changelogs.

Part of the Fissible suite. Depends on: fissible/accord (reads specs via SpecSourceInterface).


Why drift detection matters

As an API evolves, its spec and its actual routes can quietly fall out of sync. A route gets added but never documented. A route gets removed but the spec still describes it. Clients that rely on the spec to understand your API get a false picture of what's actually available.

drift surfaces that gap before it causes problems. It compares the routes your application actually serves against the routes your OpenAPI spec describes, tells you exactly what has been added or removed, and recommends how to version the change — so clients always know what to expect.


Requirements

Installation

Laravel auto-discovery

The service provider registers automatically. Console commands are registered with Artisan:


How it works

Drift enumerates your application's routes via a RouteInspectorInterface implementation and compares them against the paths defined in your OpenAPI spec. Each route is normalised to a canonical form (GET /v1/users/{param}) so that parameter names don't cause false positives.

The result is a DriftReport describing:

From that report, drift recommends a semver bump and generates a changelog entry.


Console commands

accord:validate

Checks for drift between your live routes and your OpenAPI spec:

Output is a table showing each route's status. Exits with a non-zero code if any drift is detected — useful in CI pipelines to catch undocumented or removed routes before they ship.

accord:version

Runs the full drift-analyse-changelog pipeline:

  1. Detects drift for the given version
  2. Reads the current info.version from the spec
  3. Recommends a semver bump (major / minor / patch / none)
  4. Confirms with you before writing any changes
  5. Updates the spec's info.version in place
  6. Prepends a changelog entry to CHANGELOG.md

When drift introduces breaking changes (removed routes), the command also notes that a new URI version (/v2/) should be considered.

drift:coverage

Checks that every registered route resolves to an existing controller class and method:

Output is a table showing each route's implementation status. Exits with a non-zero code if any routes are unimplemented, making it suitable for CI.


Laravel

Route inspector

The bundled LaravelRouteInspector enumerates routes in your application's api middleware group, skipping HEAD routes:

To filter routes differently, bind your own RouteInspectorInterface implementation in a service provider:


Core API

DriftDetector

VersionAnalyser

ChangelogGenerator


Custom route inspectors

Implement RouteInspectorInterface to enumerate routes from any framework:

RouteDefinition normalises parameter syntax automatically — :id, {id}, and <id> all resolve to the same canonical path for comparison.


CI integration

Add both commands to your CI pipeline:

accord:validate fails the build if any routes are undocumented or have been removed from the spec without a version bump. drift:coverage fails the build if any route's controller or method is missing — catching spec-first development gaps before they reach production.


License

MIT


All versions of drift with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
fissible/accord Version ^1.0
symfony/console Version ^6.0|^7.0
symfony/yaml Version ^6.0|^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 fissible/drift contains the following files

Loading the files please wait ...