最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】lumen简介

PHP crifan 3392浏览 0评论
折腾:
【记录】分析xxxapp中数据来源和如何爬取
期间,发现:
http://childapi.xxx.com
Welcome to 少儿xxx.
childapi xxx
棱眼在线-关键行为
qpy_spider/p.py at master · lpisces/qpy_spider
LIST_URL = '
https://apis.xxx.com/course/get_course_list?sign=37424885dff971f806afdfe93c21dba1×tamp=%s&uid=-1&level=all&sort=new&start=%s&category_id=2&ishow=0&rows=%s&nature_id=all
'

DETAIL_URL = "
https://apis.xxx.com/course/detail_new?sign=72ee4ff75aa4d70e01b77bee95294d40×tamp=%s&uid=-1&course_id=%s
"
LAMP+Coreseek+sphinx构建中文检索引擎-突破舒适区-51CTO博客
source xxx
{
        type                                    = mysql
        sql_host                                = localhost
        sql_user                                = root
        sql_pass                                =
        sql_db                                  = tuchao2
        sql_port                                = 3306
index xxx
{
        source                  = xxx  
        path                    = /usr/local/coreseek/var/data/xxx
xxx Website – xxx.com | IPAddress.com
http://xxx.com.ipaddress.com
Lumen
Lumen xxx
Lumen – 为速度而生的 Laravel 框架 – Laravel 中国
->
《Lumen 中文文档 5.6》 | PHP / Laravel 社区文档
laravel/lumen
“Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. ”
Lumen – PHP Micro-Framework By Laravel
“The stunningly fast micro-framework by Laravel.”
<?php

/**
 * Reimagine what you expect...
 */
$app->get('/', function() {
    return ['version' => '5.3']
});

/**
 * From your micro-framework...
 */
$app->post('framework/{id}', function($framework) {

    $this->dispatch(new Energy($framework));
});
lumen rest 接口
Building a REST API with Lumen – Dotun Jolaoso – Medium
Developing RESTful APIs with Lumen (A PHP Micro-framework)
Lumen实现REST API的验证 – 简书
A Guide to Creating REST API Using Lumen Microframework
【总结】
Lumen:
  • PHP语言,PHP版本 >= 7.0:
    • (php的流行框架)Laravel团队打造的,性能好的微框架,常用于开发REST API接口。
    • 其他类似框架:Silex,Slim 3
  • 可以理解为Python中的Flask?

转载请注明:在路上 » 【整理】lumen简介

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.184 seconds, using 22.11MB memory