GithubHelp home page GithubHelp logo

gaalferov / yii2-minify-url Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 11.0 677 KB

[DEPRECATED] Project on YII2 framework for create short url (url shortener)

Home Page: https://burl.pro

License: MIT License

PHP 87.75% Batchfile 0.39% CSS 5.04% Dockerfile 2.55% Shell 1.15% Hack 3.12%
shortener yii2-framework url-shortener url-shortner urlshortener analytics minify

yii2-minify-url's Introduction

Yii 2 Minify-URL Project (Url Shortener)

Codacy Badge

URL Shortener on Yii2 Framework. Live demo - 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

  • Copy and customize your docker arguments with command: cp .env-dist .env

  • Create and set your own GitHub API Token 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

  • PHPMyAdmin available at http://localhost:8080

Default credentials

Admin area:
User: [email protected]
Password: adminpassword

MySQL (.env):
User: urlshorteneruser
Password: yii2shortenerpassword

Oauth configurations

  • Add to file app/config/web-local.php your oauth data, for example:
<?php
return  [
  'components' => [
    '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:

yii2-minify-url's People

Contributors

dependabot[bot] avatar gaalferov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.