Download the PHP package giantbits/yii2-crelish without Composer
On this page you can find all versions of the php package giantbits/yii2-crelish. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-crelish
yii2-crelish 0.4.8
Content management for the Yii2 framework.
Installation
-
Create Yii2 Basic project
- Install yii2-crelish
Setup
configuration
Edit your web.php config file
Setting up folders
Create the following structure in you project root folder.
Important additions
Currently the system relies on two cintent types to b epresent. Paste the following code into the folder workspace/elements/.
Content Type Generator
Crelish now provides a command-line tool to streamline the process of creating new content types. This tool automatically generates both the database table and the model class based on a JSON element definition.
Usage
- Create a JSON element definition file in
@app/workspace/elements/(e.g.,boardgame.json) - Run the generator command:
This will:
- Create a database table for the content type
- Generate a model class with appropriate getters/setters for JSON fields
- Set up relations based on the element definition
Listing Available Element Definitions
To see all available element definitions:
Element Definition Format
The element definition should follow the standard Crelish format, with the addition of a storage property to specify whether to use database or JSON storage:
The generator will automatically:
- Map field types to appropriate database column types
- Create getters and setters for JSON fields
- Set up relations for fields of type
relationSelectandassetConnector
Special Field Types
- relationSelect: Creates a relation to another content type. Requires a
config.ctypeproperty to specify the target content type. - assetConnector: Creates a relation to the asset content type. This is automatically handled without additional configuration.
- matrixConnector: Stored as JSON data for complex structured content.
- widgetConnector: Stored as JSON data for connecting widgets to content items.
- Fields with
"transform": "json": Automatically handled with getters and setters for working with JSON data.
All versions of yii2-crelish with dependencies
yiisoft/yii2 Version ~2.0.53
symfony/yaml Version ^6.4
ksubileau/color-thief-php Version ^1.4
yiisoft/yii2-twig Version 2.5.1
yiisoft/yii2-bootstrap5 Version 2.0.50
yiisoft/yii2-queue Version *
npm-asset/bootstrap Version v5.3.3
league/glide Version 2.2.2
league/uri Version *
league/flysystem Version *
umneeq/yii2-color-extractor Version *
brussens/yii2-trumbowyg Version *
mpdf/mpdf Version ^8.2
spatie/pdf-to-image Version ^1.4
yiisoft/yii2-debug Version 2.1.26
yiisoft/yii2-gii Version 2.2.6
phpoffice/phpspreadsheet Version ^1.30 || ^5.0
vlucas/phpdotenv Version ^5.6
symfony/http-foundation Version ^7
kartik-v/yii2-widget-select2 Version v2.2.5
kartik-v/yii2-widgets Version v3.4.1
yiisoft/yii2-imagine Version ^2.3.1
kartik-v/yii2-tabs-x Version v1.2.9
cocur/slugify Version ^4.7
kartik-v/yii2-checkbox-x Version dev-master
kartik-v/yii2-dialog Version dev-master
kartik-v/yii2-dynagrid Version dev-master
kartik-v/yii2-grid Version v3.5.3
kartik-v/yii2-date-range Version ^1.7
yiisoft/yii2-httpclient Version ^2.0
guzzlehttp/guzzle Version ^7.10
yiisoft/yii2-symfonymailer Version ^4.0
deeplcom/deepl-php Version ^1.14
firebase/php-jwt Version ^6.11
erusev/parsedown Version ^1.7
luyadev/yii2-recaptcha-widget Version ^1.0
matthiasmullie/minify Version ^1.3
sentry/sentry Version ^4.19
matomo/device-detector Version ^6.5
symfony/mailgun-mailer Version ^v7
symfony/http-client Version ^v7
bacon/bacon-qr-code Version ^3.0
setasign/fpdf Version ^1.8
ext-gd Version *
ext-zip Version *
geoip2/geoip2 Version ^2.13 || ^3.0