https://github.com/gaalferov/yii2-minify-url
[DEPRECATED] Project on YII2 framework for create short url (url shortener)
https://github.com/gaalferov/yii2-minify-url
analytics minify shortener url-shortener url-shortner urlshortener yii2-framework
Last synced: 4 months ago
JSON representation
[DEPRECATED] Project on YII2 framework for create short url (url shortener)
- Host: GitHub
- URL: https://github.com/gaalferov/yii2-minify-url
- Owner: gaalferov
- License: mit
- Archived: true
- Created: 2016-01-21T12:28:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T12:01:50.000Z (over 4 years ago)
- Last Synced: 2024-09-23T22:04:12.256Z (8 months ago)
- Topics: analytics, minify, shortener, url-shortener, url-shortner, urlshortener, yii2-framework
- Language: PHP
- Homepage: https://burl.pro
- Size: 661 KB
- Stars: 15
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Yii 2 Minify-URL Project (Url Shortener)
========================================[](https://www.codacy.com/app/gaalferov/yii2-minify-url?utm_source=github.com&utm_medium=referral&utm_content=gaalferov/yii2-minify-url&utm_campaign=Badge_Grade)
URL Shortener on Yii2 Framework.
Live demo - [https://burl.pro](https://burl.pro/)Features
----
* Public urls (without registration) with public analytics information
* Private urls (after registration) with hidden analytics information
* A lot of popular social networks for registration (VK, FB, Google+, etc)
* Collect all client information geo position (country), browser, platform, referral## Docker setup
* Install [docker & docker-compose](https://www.docker.com/)
* Copy and customize your docker arguments with command: `cp .env-dist .env`
* Create and set your own [GitHub API Token](https://github.com/settings/tokens) to the field `GITHUB_API_TOKEN` for fixing problem with rate limits
* Run docker build command: `docker-compose up --build -d`
* Run Yii2 migrate command: `docker exec yii2-minify-url_app_1 php yii migrate --interactive=0`* Url Shortener will be available at [http://localhost](http://localhost)
* PHPMyAdmin available at [http://localhost:8080](http://localhost:8080)### Default credentials
~~~
Admin area:
User: [email protected]
Password: adminpasswordMySQL (.env):
User: urlshorteneruser
Password: yii2shortenerpassword
~~~### Oauth configurations
* Add to file `app/config/web-local.php` your oauth data, for example:
```php
[
'authClientCollection' => [
'clients' => [
'google' => [
'class' => 'app\components\oauth\Google',
'clientId' => 'XXX',
'clientSecret' => 'XXX',
],
'facebook' => [
'class' => 'budyaga\users\components\oauth\Facebook',
'clientId' => 'XXX',
'clientSecret' => 'XXX',
],
// twitter, facebook, github, linkedin, live, yandex, vkontakte
],
],
],
];
```
#### Example:
* Long url: https://gaalferov.com/about-me.html
* Short url: https://burl.pro/QTkNRW
