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

3-28 2,704 views

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

nginx配置自签名证书

3-27 2,241 views

nginx自签名证书 步骤 建立目录并生成 私钥 ~ cd /etc/nginx/ ~ mkdir ssl #这时会看到生成了ssl.key私钥文件 生成crt,scr 首先,进入你想创建证书和私...
阅读全文 0

bootstrap 导航下拉菜单鼠标滑过显示隐藏

3-22 3,280 views

参考:https://bootsnipp.com/snippets/Vm7d 效果 CSS body { margin: 30px 0px; } .navbar-default .navbar-nav > li.dropdown:hover > a, .n...
阅读全文 0

PHP 如何使用 Service 模式?

3-21 3,365 views

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

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

3-21 2,330 views

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

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

3-21 2,933 views

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

nginx 配置之 proxy_pass 神器!(解决JS跨域的另一个方法)

3-20 8,523 views

  proxy 模块是 nginx 中最碉堡的模块之一。就是有了 proxy 模块,nginx 才能和其它 http 服务器关联起来,极大程度地提高了 nginx 的可用性。proxy 这个模...
阅读全文 0

elasticsearch 使用命令

3-20 2,426 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,496 views

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

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

3-19 2,221 views

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