框架简介
更新日志
准备工作
安装使用
基础支持
接收消息
发送消息
用户管理
自定义菜单
实例演示
多客服功能
智能接口
推广支持
安全性
如何安装:
1、本框架以代码包的插件形式放在项目的目录中即可。调用时只需要include 'lanewechat/lanewechat.php'即可。如:
<?php
include 'lanewechat/lanewechat.php';
//获取自定义菜单列表
$menuList = Menu::getMenu();
2、配置项:打开根目录下的config.php,修改定义常量WECHAT_APPID,WECHAT_APPSECRET,WECHAT_URL。其中前两项可以在微信公众号官网的开发者页面中找到,而WECHAT_URL是你微信项目的URL,以http://开头
3、本框架的外部访问唯一入口为根目录下的wechat.php,本框架的内部调用唯一入口为根目录下的lanewechat.php。两者的区别是wechat.php是通过http://www.abc.com/lanewechat/wechat.php访问,是留给微信平台调用的入口。而lanewechat.php是我们项目内部调用时需要include 'lanewechat/lanewechat.php';
4、首次使用时,请打开根目录下的wechat.php,注释掉26行,并且打开注释第29行。
5、在微信开发者-填写服务器配置页面,填写URL为http://www.lanecn.com/wechat.php,保证该URL可以通过80端口正常访问(微信服务器目前只支持80端口),并且将Token填写为config.php中的WECHAT_TOKEN常量的内容(可以修改)。
6、微信服务器在第4步验证通过后,反向操作第4步,即注释掉第27行,打开注释第26行。至此,安装配置完成。
Reply: ibrahim On 2015-05-27 14:55:04
本页文档笔误: 6、微信服务器在第4步验证通过后,反向操作第4步,即注释掉第27行,打开注释第26行。至此,安装配置完成。 ------------------------------------------------------------------------------>此处应为“29行”
Reply: DerikZhang On 2015-06-10 12:40:17
完成安装,遇到问题:fatal error:namespace error 遇到这个namespace的问题是因为bom头的问题,用工具by kvoid可以去除bom头,成功验证
Reply: Teven On 2016-04-25 10:56:51
请问在Laravel中要怎么安装呢?由于Laravel的Routing的存在,配置服务器入口地址的时候简单的用http://www.lanecn.com/wechat.php是不行的吧?是否需要相应的去配置Routing?
Reply: rusice On 2016-08-21 01:01:57
我把框架整合到thinkphp上,我把对接的部分写到公共目录的_initialize方法里面,所有的应用访问先访问这个方法,run() 是必须要echo 出来吗?如果是%E
Reply: Perry On 2017-02-25 15:12:16
Hi,首先非常感谢你的开源贡献,对于想用PHP做个微信公众号的后台的小白我来说,简直就是救星。由于刚接触PHP,请原谅我的无知.... 我在使用的过程当中遇到了token验证问题。我步骤都是按照你在GitHub中的说明来的。 我使用了slim框架(https://www.slimframework.com/docs/)。我把lanewechat放在了我工程中的vendor文件夹中,我config配置中的WECHAT_URL 填的是我的后台的域名:http://xxx.leanapp.cn 在我的微信公众号的URL填的是:http://xxx.leanapp.cn/wechat.php但是验证失败,我也试过:http://xxx.leanapp.cn/lanewechat/wechat.php 也验证失败。不知道这个是否需要我额外的配置?
Reply: Elltherie On 2020-03-07 15:08:31
Viagra Quanto Costa Farmacia http://apcialisle.com/# - Cialis Strep Throat 200ml Of Amoxicillin <a href=http://apcialisle.com/#>Cialis</a> How Long Does Zithromax Last
Reply: Elltherie On 2020-03-23 12:24:01
Je Acheter Dapoxetine? https://apcialisle.com/# - brand name cialis online Club Levitra <a href=https://apcialisle.com/#>buy cialis online overnight shipping</a> Cialis 20mg Original
Reply: Owereemiz On 2020-06-29 19:51:48
Overnight Propranolol https://cheapcialisll.com/ - cialis generic best price Cialis Kaufen Levitra <a href=https://cheapcialisll.com/#>buying cheap cialis online</a> Viagrasuppliers
Reply: legit cialis online On 2020-07-21 10:27:49
Buy Propecia Finasteride 1mg Lelefuerse https://ascialis.com/# - Cialis tumjuptImpam Propecia Vom Markt irralymN <a href=https://ascialis.com/#>cialis cost</a> goormapoge Keflex Rash
Reply: cialis 40 mg On 2020-09-16 12:45:38
Lioresal France Lelefuerse https://cialisse.com/ - generic cialis tadalafil tumjuptImpam Mail Order Stendra Us Medication Pharmacy irralymN <a href=https://cialisse.com/#>buy online cialis</a> goormapoge Worked For Me Propecia Finasteride
Reply: Kmrfisona On 2020-11-06 23:18:54
does viagra have a generic http://usggrxmed.com/ <a href="http://usggrxmed.com/#">buy viagra online forum</a> viagra online prescription
Reply: FrbhAlado On 2020-11-16 01:55:53
buy viagra on line seattle <a href="https://paradiseviagira.com/#">https://paradiseviagira.com/</a> buy viagra australia online no prescription
Reply: Kmrfprot On 2020-11-17 01:20:56
viagra cocktail recipes <a href="https://purevigra.com/#">purevigra.com</a> viagra sans ordonnance doctissimo
Reply: DevkAlado On 2020-11-18 03:00:17
buy viagra discover card <a href="https://paradiseviagira.com/#">viagra inside inida shipping</a> viagra doctor samples
Reply: Fhsbisona On 2020-11-18 09:54:35
recherche viagra pour homme <a href="https://buybuyviamen.com/#">https://buybuyviamen.com</a> viagra pays vente libre
Reply: Fbsgisona On 2020-11-19 17:37:50
viagra used by nfl players <a href="https://buybuyviamen.com/#">viagra uso indiscriminado</a> att ta viagra
Reply: FdbvAlado On 2020-11-20 23:53:19
sildenafil for sale usa <a href="https://hopeviagrin.com/#">viagra-50mg</a> sildenafil price australia
Reply: Fevbisona On 2020-11-21 06:19:38
viagra sold in plipeans <a href="https://wowviaprice.com/#">https://wowviaprice.com/</a> safe generic viagra
Reply: DbsfAlado On 2020-11-25 23:37:15
where can you get viagra over the counter <a href="https://lightvigra.com/#">viagra 37500</a> how much is real viagra
Reply: JsweApery On 2020-11-26 10:21:39
viagra tablets uk <a href="https://mygoviagar.com/#">best female viagra</a> sildenafil 20 mg online prescription
Reply: Fbsbisona On 2020-11-26 10:57:50
viagra pfizer kopen <a href="https://genericrxxx.com/#">viagra professional 50 mg</a> viagra on babies
Reply: Fmsgisona On 2020-11-27 16:46:06
viagra for men free samples <a href="https://siviagmen.com/#">how to buy viagra in india</a> viagra for women libido
Reply: Fnrdisona On 2020-11-29 23:15:31
viagra online paypal uk <a href="https://llviabest.com/#">viagra calgary</a> viagra with dapoxetine overnight delivery
Reply: Kwgdprot On 2020-11-30 04:08:50
best essay writer company <a href="https://researchpaperssfk.com/#">pay to write essays</a> analytical trigonometry homework
Reply: Fnsbisona On 2020-11-30 10:47:16
247 homework help <a href="https://customessaywriterbyz.com/#">essay writing competitions</a> homework for pre k
Reply: DvscAlado On 2020-12-01 03:00:11
spelman college essay <a href="https://dissertationhelpvfh.com/#">help writing an article</a> essay writing scaffold
Reply: JgscApery On 2020-12-01 16:29:56
college essay helper <a href="https://thesisbyd.com/#">writing a short speech</a> computer science homework help paid
Reply: Fqfisona On 2020-12-01 18:24:27
help with accounting homework problems <a href="https://essaywritingservicesjy.com/#">writing an essay help</a> help writing a narrative essay
Reply: Fsfisona On 2020-12-03 08:54:24
grad school personal statement <a href="https://essayhelpbgs.com/#">writing scientific research papers</a> thesis writer
Reply: Fnrhisona On 2020-12-04 10:41:00
viagra and high blood pressure medication <a href="https://genqpviag.com/#">generic viagra blogs</a> cheep viagra
Reply: FgnsAlado On 2020-12-08 23:23:11
cialis drugs <a href="https://tadafcialirx.com/#">buy cialis cheapest</a> 5mg cialis
Reply: DvncAlado On 2020-12-10 23:47:40
generic cialis professional <a href="https://vipmenciall.com/#">viagra vs cialis vs levitra reviews</a> does cialis really work
Reply: Khedprot On 2020-12-11 16:15:38
viagra cape town sale <a href="https://buyviagrrxon.com/#">to buy viagra with dapoxetine</a> buying viagra sending to australia
Reply: Fqbfisona On 2020-12-12 08:03:00
generic cialis <a href="https://gocialirx.com/#">cialis pro</a> buy dapoxetine with cialis
Reply: Fgrsisona On 2020-12-12 13:43:54
buy real viagra with a echeck <a href="https://xviagrnorx.com/#">viagra en sydney</a> viagra and dapoxetine with
Reply: JgsvApery On 2020-12-13 07:46:07
generic viagra (sildenafil citrate) <a href="https://atviagrmenrx.com/#">viagra amex</a> best viagra prices
Reply: Fsfgisona On 2020-12-14 07:03:11
viagra from doctors in melbourne <a href="https://viagstorerx.com/#">viagra 6 free samples</a> viagra cheap cheapest
Reply: DvnjAlado On 2020-12-15 21:18:41
viagra sams <a href="https://hopeviagrin.com/#">get perscription for viagra scottsdale az</a> viamedic viagra
Reply: Aqwsisona On 2021-01-09 05:45:21
erectile dysfunction causes <a href="http://canadadrugslopl.com/#">pharmacy online</a> canada rx pharmacy
Reply: JlloApery On 2021-01-10 01:19:15
e d <a href="http://canadianonline-pharmacydazc.com/#">best drugstore concealer</a> ed pills online
Reply: LisUP On 2021-01-10 03:12:09
Medicine information sheet. Effects of Drug Abuse. <a href="https://viagra4u.top">cost of cheap viagra without insurance</a> in Canada. Actual information about medicines. Read information now. <a href=https://azastyle.com/producto/autumn-minimalist-blouse/#comment-234825>Everything information about medicine.</a> <a href=http://kireevsk-crb-zdrav.ru/forums/topic/best-about-medicines/>Best about medicines.</a> <a href=http://eshop.goodmat.cz/index.php?action=detail&id=ID3914>Best about medicines.</a> fb36_ca
Reply: FgvdAlado On 2021-01-10 06:27:37
pharmacy rx one <a href="http://canadapharmacyonlinestbh.com/#">best drugstore bb cream</a> ed drugs
Reply: RjiDF On 2021-01-10 11:06:10
Pills prescribing information. Brand names. <a href="https://viagra4u.top">where buy cheap viagra</a> in US. Some information about pills. Read now. <a href=https://camping-u.co.il/page-markup-and-formatting/#comment-37165>Everything what you want to know about drugs.</a> <a href=https://akarui-mirai.blog.ss-blog.jp/TOYOTA-AQUA-TD3-X-URBAN-02?comment_success=2021-01-10T07:02:55&time=1610229775>Some what you want to know about medication.</a> <a href=https://certifiedweedstore.com/product/apothecary-cannabis-oil/#comment-3673>Everything trends of meds.</a> 33cf40a
Reply: DavidFto On 2021-01-11 20:23:09
Medicament information leaflet. Brand names. get topamax https://topamax4u.top in US Some about medicament. Get now. https://fr.swashvillage.org/article/colonel-harland-sanders-biography-2#comments Actual about medicament. http://hug-xoxo-me.jugem.jp/?eid=142 Best trends of meds. http://hungryanimalfoundation.org/?page_id=10400&cpage=1#comment-44823 Best what you want to know about meds. 0a3fb36
Reply: Khthprot On 2021-01-11 23:58:37
mail order pharmacy <a href="http://onlinepharmacyzefb.com/#">treatment for erectile dysfunction</a> canadian pharmacy cialis
Reply: NllpAlado On 2021-01-13 01:11:00
cvs drugstore http://pharmacy-onlineasxs.com/ drug store news
Reply: Jtmfisona On 2021-01-13 04:18:46
ed <a href="http://canadadrugsonlinevbyh.com/#">canadian pharmacies online</a> e d
Reply: FgnhAlado On 2021-01-14 10:35:34
viagra jelly usa <a href="http://ltdviagragogo.com/#">viagra over night</a> cialis vs viagra viagra loest prise <a href="http://hdgenericviagraxk.com/#">cost of viagra at walgreens</a> viagra pfizer usa when viagra patent run out <a href="http://buygenericviarga.com/#">can you buy viagra over the counter in the uk</a> viagra canada where can i purchase viagra with paypal? <a href="http://buyhdpillvia.com/#">viagra in dublin</a> viagra substitutes over the counter viagra taiwan <a href="http://genericviagrix.com/#">herbal substitute for viagra paypal</a> buy viagra online in canada paypal
Reply: JvcxApery On 2021-01-14 20:08:11
paypal to buy viagra <a href="http://fmedrx.com/#">top viagra store buy</a> is viagra over the counter in mexico online pharmacy, mastercard, viagra <a href="http://edabcrx.com/#">generic viagra with dapoxetine 160mg x 16 tabs</a> viagra 4 packs canada viagra <a href="http://abcrxmed.com/#">365pills generic viagra</a> buy moscow viagra cialis, levetra, viagra for less <a href="http://cialedrx.com/#">viagra uk online</a> how to make viagra at home use paypal to buy viagra <a href="http://hitrxmenvia.com/#">wholesale viagra cialis</a> suppliers cialas,viagra
Reply: Klioprot On 2021-01-17 00:36:03
viagra discounr <a href="http://bestviagrx.com/#">australia online pharmacy no prescription viagra</a> buy viagra generic online herbal viagra gnc <a href="http://viarxhd.com/#">viagra online prices</a> viagra australia mastercard viagra australia online <a href="http://viagetpill.com/#">viagra online generic</a> viagra sydney viagra priligy australia paypal <a href="http://pillexrx.com/#">viagra samples free online</a> buy generic viagra online usa walmart viagra cost <a href="http://usggrxmed.com/#">viagra toronto store</a> viagra professional uk
Reply: NlbxAlado On 2021-01-17 03:53:03
ireland manufacturer viagra <a href="http://viashoprx.com/#">buy viagra in canada</a> use paypal to buy viagra viagra/cialis black and gold 800 <a href="http://xviagarrx.com/#">generic viagra uk next day delivery</a> viagra canada generic viagra drugstore1st online <a href="http://viagraviagria.com/#">cheap cheap viagra</a> generic viagra suppliers genric viagra <a href="http://asgenviagria.com/#">celiac. viagra</a> viagra vs cialis reviews generic viagra soft tabs <a href="http://viagengen.com/#">where to buy cheap viagra</a> cheap pfizer viagra online
Reply: Aqbvisona On 2021-01-19 00:58:26
viagra 100 <a href="http://acialaarx.com/#">viagra professional uk</a> price 100mg viagra http://acialaarx.com/ - best viagra substitute over the counter ’
Reply: FbdhAlado On 2021-01-19 11:16:26
selling cialis in us <a href="http://21cialismen.com/#">cialis low price</a> sell cialis http://21cialismen.com/ - buy cialis at walmart ’
Reply: JvcbxApery On 2021-01-19 20:28:30
buy 20mg cialis <a href="http://phrcialiled.com/#">cialis on line</a> buy cialis 20 mg http://phrcialiled.com/ - reliable source cialis ’
Reply: Lcxisona On 2021-01-22 13:06:08
female pink viagra <a href="http://genqpviag.com/#">buy generic viagra on line</a> what is better viagra or cialis or levitra?? http://genqpviag.com/ - viagra for sale in seattle wa. ’
Reply: Jbdcisona On 2021-01-22 20:22:46
lowest priced generic viagra master card <a href="http://llviabest.com/#">herbal viagra gnc</a> buy viagra on oine http://llviabest.com/ - viagra without priscription ’
Reply: Ahmdisona On 2021-01-23 20:27:31
cialis. <a href="http://cialmenshoprx.com/#">cialis overnight pharmacy</a> cialis with dapoxetine or viagra with dapoxetine better http://cialmenshoprx.com/ - generic cialis - ’
Reply: FbgAlado On 2021-01-24 07:03:04
buy viagra cialis mix online <a href="https://canadianpharmacy-usx.com/organic.htm">pfizer viagra</a> where to buy plizer 100mg viagra https://canadianpharmacy-usx.com/organic.htm - viagra in montreal ’
Reply: JnhApery On 2021-01-24 12:20:11
can ubuy cialis on streets <a href="http://loncialis.com/#">cialis 20mg online</a> overnight delivery generic cialis http://loncialis.com/ - canada cialis generic ’
Reply: Kbbtprot On 2021-01-26 07:28:19
generic cialis 20 mg <a href="https://xz-pharmacyonline.com/#">canadian pharmacy viagra</a> buy cialis online https://xz-pharmacyonline.com - online pharmacies canada ’
Reply: Fmfvisona On 2021-01-27 13:05:09
cialis (lillys) <a href="http://sjcialis.com/#">geniric cialis</a> generic cialis online overnight delivery http://sjcialis.com/ - cialis paypal online ’
Reply: Ahmdisona On 2021-01-29 02:44:06
cialis on paypal <a href="https://impotencecdny.com/">Tenormin</a> 800 mg black cialis over night ship 800 mg https://impotencecdny.com/ - Duricef ’
Reply: FhnhAlado On 2021-01-29 12:44:40
canadian pharmacies that are legit <a href="https://canadianpharmacy-yy.com/">pharmacy technician classes online free</a> Combivir https://canadianpharmacy-yy.com/ - Cardizem ’
Reply: JnscApery On 2021-01-29 18:20:59
originial viagra <a href="http://erectilejyzd.com/index.php?called=terms">viagra online australia</a> viagra canadian pharmacy no prescription http://erectilejyzd.com/index.php?called=terms - buy voucher for viagra daily online ’
Reply: Kbbgprot On 2021-01-31 13:49:01
dapoxetin,viagra <a href="http://erectilejyzd.com/#">Viagra Plus</a> shop viagra http://erectilejyzd.com/ - cialis online pharmacy ’
Reply: NgscAlado On 2021-02-01 06:04:40
cheap sildenafil 20 mg <a href="http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html">purchase viagra without prescription</a> viagra tablets price in uk http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html - buy real viagra online in india ’
Reply: Fmnfisona On 2021-02-01 20:07:43
cialis for women dosage <a href="https://impotencecdny.com/info/history.php">order generic cialis</a> cialis paypal https://impotencecdny.com/info/history.php - cialis results ’
Reply: NncsAlado On 2021-02-04 05:02:28
viagra online australia paypal <a href="http://lightvigra.com/ ">buy viagra without perscription</a> viagra for sale australia
Reply: Kuikthink On 2021-02-05 01:56:53
viagra patent expiration date canada <a href="http://viagerkr.com/ ">brand viagra online</a> how much is viagra per pill
Reply: FvfcAlado On 2021-02-05 07:23:30
what is the ingredients in viagra <a href="http://hopeviagrin.com/ ">cialis, levetra, viagra for less</a> genericviagra
Reply: Lbsxisona On 2021-02-09 12:49:32
canada prescription plus pharmacy <a href="https://ssviagriia.com/ ">bayviagra</a> canadian pharmacy no prescription needed
Reply: Kbbfthink On 2021-02-12 04:42:53
viagra dapoxetine <a href="https://kloviagrli.com/ ">http://kloviagrli.com/ </a> over the counter viagra walgreens
Reply: NbnhAlado On 2021-02-12 05:41:21
purchase viagra in india <a href="https://vigedon.com/ ">http://vigedon.com/ </a> generic viagra online prescription
Reply: Jbbnisona On 2021-02-12 17:39:23
cialis amazon com <a href="http://ljcialishe.com/ ">cialis pages home</a> cialis satanlar
Reply: Ahbzisona On 2021-02-13 22:04:58
allied cash advance indianapolis <a href="http://daymoneygo.com/ ">fast cash loan without bank account</a> payday loans default rate
Reply: Fqbbisona On 2021-02-14 16:21:43
payday loan in fresno <a href="http://ascashapply.com/ ">cash advance okemos mi</a> cash advance in capitol heights md
Reply: Labxisona On 2021-02-17 09:10:14
seroquel cialis <a href="https://jecialisbn.com/ ">viagra cialis und kamagra erfahrungsbericht</a> i took cialis and nothing happened
Reply: NbmoAlado On 2021-02-27 07:38:49
online cialis <a href="http://buycialisxz.com/ ">http://buycialisxz.com/ </a> cialis online in canada
Reply: Kndnprot On 2021-02-28 00:56:29
cialis viagra <a href="http://viagratx.com/ ">sildenafil 20 mg vs viagra</a> generic viagra india
Reply: FjjuAlado On 2021-02-28 05:18:15
whats viagra <a href="http://viagraonlinejc.com/ ">buy cheap viagra </a> watermelon natural viagra
Reply: sam On 2015-01-30 11:47:07
5、在微信开发者-填写服务器配置页面,填写URL为http://www.lanecn.com/wechat.php,保证该URL可以通过80端口正常访问(微信服务器目前只支持80端口),并且将Token填写为config.php中的WECHAT_TOKEN常量的内容(可以修改)。 填写URL为http://www.lanecn.com/wechat.php 域名是填写我自己的域名吧
回复