Download the PHP package gaiatools/content-accord without Composer

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

Content Accord

Content Accord is a Laravel package for API versioning with composable strategies and a generic negotiation layer. It supports URI, header, and Accept header versioning behind a single fluent API and prepares your application for future negotiation dimensions (locale, format, tenant).

Features

Requirements

Installation

Publish the configuration file:

Configuration

The main configuration lives in config/content-accord.php under the versioning key.

Key settings:

Usage

Fluent Route Groups (Recommended)

Use Route::apiVersion() to declare versioned route groups. The URI prefix is managed automatically based on your configured resolver strategy.

With the URI strategy (default), the above registers at /api/v1/users and /api/v2/users. With header or Accept strategies, both register at /api/users and Content Accord selects the right route at dispatch time.

Deprecation metadata is a fluent chain:

Header Strategy

Requests:

Accept Header Strategy

Custom Dimensions and Resolvers

Override the negotiated dimensions or the resolver implementation:

Register any custom dimensions/resolvers in the container so they can be resolved.

Missing Version Behavior

Configure what happens when a request has no version:

Fallback Behavior

Enable fallback globally or per group:

If a request targets v3 but only v2 exists for that endpoint, the v2 route will be selected when fallback is enabled.

Attributes

Add version metadata on controllers or methods:

Method-level attributes take precedence over class-level attributes. Attribute versions override the group version in route metadata. Mismatches are logged in local/testing environments.

Deprecation Headers

Mark version groups as deprecated and optionally add sunset dates and docs links:

The Deprecation, Sunset, and Link headers are added automatically when deprecation metadata is present.

Accessing the Negotiated Version

Use the apiVersion() helper in controllers or anywhere after the negotiate middleware has run:

Or inject NegotiatedContext directly:

Testing Utilities

Use the testing helper to attach API versions to test requests:

The helper respects the configured strategy (URI, header, or Accept).

Artisan Command

List configured versions and route counts:

License

MIT


All versions of content-accord with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4|^8.5
illuminate/contracts Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.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 gaiatools/content-accord contains the following files

Loading the files please wait ...