Download the PHP package quebecstudio-mods/consent-kit-core without Composer

On this page you can find all versions of the php package quebecstudio-mods/consent-kit-core. 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 consent-kit-core

Cookie Consent Kit core — quebecstudio-mods/consent-kit-core

The framework-free part of Cookie Consent Kit, shared by its integrations:

Integration Package
Craft CMS 6 quebecstudio-mods/craftcms-consent-kit 6.x
Craft CMS 5 quebecstudio-mods/craftcms-consent-kit 5.x
Laravel quebecstudio-mods/laravel-consent-kit
Statamic 6 quebecstudio-mods/statamic-consent-kit 6.x

Requires PHP 8.2, illuminate/collections and illuminate/support. It uses no framework: an integration passes it settings and site data, and renders its templates.

Contents

Path What it is
src/Resolver.php Settings of one site → language, wording, categories, banner configuration
src/SettingsMerger.php Merges a submitted settings form over stored settings; seeds the shipped categories
src/Defaults.php Shipped categories, inventory elements and class presets
src/Languages.php Reads the wording files, the shipped ones then the project's
src/lang/<language>.php Shipped wording: English and French
src/Templates.php Derived qsm-ck* variables for the templates
src/CookieTableMarkers.php [cookie-table] markers in content
src/Bootstrap.php The inline <head> script, with its configuration
src/Attributes.php Optional class attributes for the Blade templates
src/Paths.php Paths of the templates, wording files and assets
src/Presentation.php Fingerprint of what the banner was showing, for a consent register
src/Decision.php A reported answer, read against the categories the site offers
src/RecordScript.php The inline script that reports a decision to a register endpoint
resources/views/blade/, resources/views/twig/ Shipped templates: banner, cookie-table, video-facade, video-embed
resources/consent.js, resources/consent.css Front-end assets

Using it from an integration

The integration publishes Paths::asset('consent.js') and Paths::asset('consent.css'), and loads them on the pages that show the banner.

Template contract

Template Variables Derived by Templates
banner config, texts, categories qsmConfigJson
cookie-table categories, texts, classes, heading, headingLevel qsmLevel; per category qsmTitleId; per cookie qsmProviderLabel
video-facade youtubeId, title, poster, thumbnail, consentCategory, texts qsmPosterUrl
video-embed youtubeId, title qsmIframeTitle

The Twig and Blade templates render the same markup; the tests check both against the same references.

Tests

The arch test fails if src/ uses Craft, Yii, Twig, or any part of Laravel beyond collections and support.

Licence

Proprietary. See LICENSE.md.


All versions of consent-kit-core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/collections Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.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 quebecstudio-mods/consent-kit-core contains the following files

Loading the files please wait ...