定制 alcr33k/ccloak 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alcr33k/ccloak

最新稳定版本:v1.0

Composer 安装命令:

composer require alcr33k/ccloak

包简介

CCloak is a simple wrapper-class for link cloaking

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage CCloak

CCloak is a simple wrapper-class for link cloaking within the Anax framework (https://github.com/mosbth/Anax-MVC.git)

How to use

  1. Download

The easiest way is to install using composer. Add to your composer.json:

"require": {
	"alcr33k/ccloak": "dev-master",
}

Then run composer update.

  1. MySql

The package is using MySql so make sure you have MySql setup in your Anax framework. If you have, go the next step, if not follow these steps:

Open the folder config in the package and you will find the file "database_mysql.php", open the file and you will see that the first 3 fields (dsn, username, password) are empty. Fill those with your dsn, your database username and your database password.

Now save the file and move it to the anax config folder (app/config). You have now MySql done.

  1. Setup

Have you a file called "database_mysql.php" with your mysql credentials in you Anax config, if you answered yes keep on reading.

The first thing you need to do when you have installed the package is to move the file "redirect.php" located in the folder "move-to-webroot" to your actual webroot folder.

Move the cloak folder to app/src and you are now good to go!

Now visit webroot/redirect.php and start creating some redirects. The package will automatically setup the databses needed.

  1. How to use

The url to visit one of the redirects you created in redirects.php is as follows:

redirect.php?url=linkName (change linkname to whatever you named the redirect)

Enjoy! . ..: Copyright (c) 2014 - 2015 Alexander Björkenhall, alex.alle@hotmail.com

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-22