mergit/yii2-shorty

Yii2 URL Shortener

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2018-02-01 15:39 UTC

This package is not auto-updated.

Last update: 2024-04-14 03:12:17 UTC


README

Yii2 URL Shortener

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mergit/yii2-shorty "dev-master"

or add

"mergit/yii2-shorty": "dev-master"

to the require section of your composer.json file.

Usage

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

$config = [
    'defaultRoute' => 'shorty/default/index',

	'components' => [
		'geoip' => ['class' => 'lysenkobv\GeoIP\GeoIP'],
	],

	'modules' => [

		'shorty' => [
		    'class' => 'mergit\shorty\Module',
		],
    
	],
];

Create DB

yii migrate --migrationPath=@vendor/mergit/yii2-shorty/migrations