Download the PHP package jobverplanke/craftcms-components without Composer

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

Introduction

Simple driver setup for CraftCMS components queue, cache or session for CraftCMS v4 and v5.

Available components and drivers

Redis Database
Cache :white_check_mark: :white_check_mark:
Queue :white_check_mark: :x: (default driver)
Session :white_check_mark: :white_check_mark:

[!NOTE] Craft's default queue driver is the database. Do not configure the queue component in the app.php if you want to make use of the database queue driver.

Craft v4: https://craftcms.com/docs/4.x/config/app.html#queue
Craft v5: https://craftcms.com/docs/5.x/reference/config/app.html#queue

Installation

Make sure that the yiisoft/yii2-redis package is installed when utilizing Redis

Configuration

To make use of a different driver per component is a breeze. Just specify the desired driver for the component you want to use in the components config array in either config/app.php or config/app.web.php (session only).

Database configuration

In order to use the database driver, configure CraftCMS as followed

Cache component

Queue component

Session component

Redis configuration

If you want to use the Redis driver for a specific component, make sure Redis is configured

  1. Add the Redis component to the app.php, see example below
  2. Enable Redis by adding the following environment variables
    • REDIS_URL= OR REDIS_HOST, REDIS_PORT and REDIS_PASSWORD

[!NOTE] REDIS_URL takes precedence over REDIS_HOST, REDIS_PORT and REDIS_PASSWORD.

Cache component

Queue component

Session component

Environment Variable Configuration

The following environment variables are available for further configuration of the components
It's recommended to leave the following set to false when using Heroku. Heroku issue and Github issue

Required Type Default Value Description / Remark
CRAFT_CACHE_DRIVER :white_check_mark: string Possible values redis or database
CRAFT_SESSION_DRIVER :white_check_mark: string Possible values redis or database
CRAFT_QUEUE_DRIVER :white_check_mark: string Possible values redis or database
REDIS_URL :white_check_mark: string Takes precedence over REDIS_HOST, REDIS_PORT and REDIS_PASSWORD.
REDIS_HOST string Only when REDIS_URL is not used
REDIS_PORT string 6379 Only when REDIS_URL is not used
REDIS_PASSWORD string Only when REDIS_URL is not used
REDIS_DB integer 0 Default database to use, this database will be used for all Redis connections
REDIS_RETRIES integer 1 Th..ount of times to retry connecting after connection has timed out
REDIS_SSL boolean false Use SSL connection when connecting with Redis. Recommended to use false when using Heroku
REDIS_SSL_VERIFY_PEER boolean false Verify peer SSL certificate. Recommended to use false when using Heroku
REDIS_SSL_VERIFY_PEER_NAME boolean false Verify peer name of SSL certificate. Recommended to use false when using Heroku
REDIS_CACHE_DB integer 1 Which database to use for the cache database. Make sure the cache database is separated from the queue and session database
REDIS_QUEUE_DB integer 3 Which database to use for the queue database
REDIS_QUEUE_CHANNEL string queue Queue channel to use
REDIS_QUEUE_TTR integer 300 Max time for job execution, unit in seconds
REDIS_QUEUE_ATTEMPTS integer 3 Max number of attempts
REDIS_SESSION_DB integer 1 Which database to use for the session database.

All versions of craftcms-components with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^4.0|^5.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 jobverplanke/craftcms-components contains the following files

Loading the files please wait ....