一个好用的php 操作 shell 包 php-shellcommand

3-28 2,709 views

Github :https://github.com/mikehaertl/php-shellcommand 安装 (php > 5.4) composer require mikehaertl/php-shellcommand 例子 <?php use mikeha...
阅读全文 1

PHP 如何使用 Service 模式?

3-21 3,372 views

若将商业逻辑都写在 controller,会造成 controller 肥大而难以维护,基于SOLID原则,我们应该使用 Service 模式辅助 controller,将相关的商业逻辑封装在不...
阅读全文 0

php 抓取自如友家首页的区域和地铁数据

3-21 2,335 views

步骤 使用composer安装 php抓取扩展包 composer require jaeger/querylist 分析自如首页html结构 经过分析发现区域和地铁数据在类名.clearfix.filterLi...
阅读全文 0

QueryList 一套简洁、优雅、可扩展的PHP采集工具(爬虫),基于phpQuery。

3-21 2,943 views

QueryList 简介 QueryList是一套简洁、优雅、可扩展的PHP采集工具(爬虫),基于phpQuery。 Github: https://github.com/jae-jae/QueryList packagist https:...
阅读全文 0

elasticsearch 使用命令

3-20 2,432 views

文档地址: https://www.elastic.co/guide/en/elasticsearch/client/php-api/5.0/index.html https://packagist.org/packages/elasticsearch/elasticsearch ...
阅读全文 0

laravel 模块化开发插件laravel-modules

3-19 4,508 views

假如你的项目要分离模块,比如说admin、shop、blog等等,你可能需要这个插件 详细文档: https://nwidart.com/laravel-modules/. https://packagist.org/pac...
阅读全文 0

MySQL 5.7以上 root用户默认密码问题【转】

3-19 2,231 views

转载地址:https://www.yanning.wang/archives/379.html 最近有点小问题,需要在本地虚拟机里搭建一个MySQL服务器.但是按着以前的日志一步步操作,最后总是...
阅读全文 0

laravel phpunit 命令行无法运行。(‘phpunit’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。)

3-02 3,960 views

请使用在项目下用 php vendor/phpunit/phpunit/phpunit 代替。
阅读全文 0

LavaLite —— 一款基于laravel 的CMS框架

3-01 4,013 views

文档地址:https://lavalite.org/docs/master/installation github地址:https://github.com/LavaLite/cms 基本要求: – PHP >= 7.1 – OpenS...
阅读全文 0

laravel 多语言插件 laravel-localization

3-01 2,848 views

github : https://github.com/mcamara/laravel-localization 项目下输入: composer require mcamara/laravel-localization 在 config/app.php ...
阅读全文 0