globus/yii2-tilda-api

Tilda platform api extension for Yii2

Installs: 1 256

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 3

Open Issues: 0

Type:yii2-extension

dev-master 2017-05-12 12:22 UTC

This package is not auto-updated.

Last update: 2024-04-28 00:41:32 UTC


README

Tilda platform api extension for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

composer require globus/yii2-tilda-api:dev-master

or add

"globus/yii2-tilda-api": "*"

to the require section of your composer.json file.

Apply migrations

php yii migrate --migrationPath=../vendor/globus/yii2-tilda-api/migrations

Usage

Once the extension is installed, simply use it in your code by :

    'components' => [
         ...
         'tilda' => [
             'class' => 'globus\tilda\TildaApi',
             'publicKey' => '**********',
             'secretKey' => '**********',
             'assetsUrl' => Yii::getAlias('@storageUrl') . '/tilda',
             'assetsPath' => Yii::getAlias('@storage') . '/web/tilda',
         ],
     ],

Once the extension is installed, simply use it in your code by :

Yii::$app->tilda->getPage($pageID)