php扩展 代码 xlswriter:Excel 处理工具opcodesio/log-viewer:laravel的图像化日志barryvdh/laravel-snappy:pdf处理工具SimpleSoftwareIO/simple-qrcode:二维码生成工具mews/captcha:图片验证码spatie/la
Tips 代码 phparray_column():第二个参数为null,指定第二维数组里的键为第三个参数,可以提取该键对应的值为一维的键值 $arr = [ ['id'=>'a','name'=>'A'], ['id&
laravel使用Intervention\Image扩展压缩图片 代码 记录一下使用Intervention\Image压缩图片安装扩展composer require intervention/image确保php安装了GD库或者 Imagick才可以使用使用use Intervention\Image\Facades\Image;$imageUrl = '图
使用MetingJs作为音乐外链播放器 代码 使用MetingJS实现在任意地方使用外链播放器,在需要使用的地方插入如下html即可 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css&q
使用github+PicGo搭建免费图床,并使用jsdeliver加速 使用github搭建图床,并使用jsdeliver加速github设置在github中新建一个公开仓库,仓库名称随意在github的设置中添加 私人令牌token,令牌在后面使用PicGo作为图床客户端时有用token名字随便取,要勾选repo项。token有效期如果不考虑安全性可以选不过期,然后创
Ubuntu系统下安装LNMP 代码 php# 添加源sudo apt -y install software-properties-commonsudo add-apt-repository ppa:ondrej/php# 更新源sudo apt update# 安装php8.0-fpmsudo apt -y install php8