Coder Social home page Coder Social logo

huangdehui2013 / yii2-app-wechat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from callmez/yii2-app-wechat

0.0 2.0 0.0 412 KB

微信模块应用示例

Home Page: https://github.com/callmez/yii2-wechat

License: Other

PHP 94.83% Batchfile 2.05% ApacheConf 0.40% CSS 2.72%

yii2-app-wechat's Introduction

Yii2微信系统模板

Yii2-app-basic为基础模板展现Yii2-wechat模块的基础功能, 可用于生产环境或模块使用示例.

安装要求

PHP >= 5.4.0.

安装

使用Composer安装

命令行执行以下命令:

// Yii2框架依赖
php composer.phar global require "fxp/composer-asset-plugin:1.0.0" 
// 框架安装为wechat目录
php composer.phar create-project --prefer-dist --stability=dev callmez/yii2-app-wechat wechat 

配置

数据库

编辑 config/db.php 填入你的数据库配置, 例如:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2wechat', // 数据库必须存在. 
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];

微信设置

当数据库配置完成后, 需要执行一些步骤来完整的使用wechat模块提供的功能

命令行执行

// 迁移wechat模块数据库表
php yii migrate --migrationPath=@callmez/wechat/migrations 
// 迁移示例模块数据库表, 如果已经熟悉微信模块的功能这一步可以略过
php yii migrate --migrationPath=@app/modules/example/migrations 

访问

如果以上都设置完毕, 并且应用安装在你的Web服务访问目录下, 你只需要在浏览器输入以下地址即可体验

http://localhost/wechat/web

yii2-app-wechat's People

Contributors

qiangxue avatar samdark avatar cebe avatar ragazzo avatar callmez avatar creocoder avatar lucianobaraglia avatar schmunk42 avatar slavcodev avatar mohorev avatar githubjeka avatar maximal avatar kingyes avatar klimov-paul avatar sensorario avatar mickgeek avatar marsuboss avatar lancecoder avatar gitrad avatar dizews avatar sonicgd avatar paulvanschayck avatar pmoust avatar johonunu avatar mikehaertl avatar davidsonalencar avatar trianman avatar cyanofresh avatar zelenin avatar

Watchers

James Cloos avatar Roman 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.