自动生成twitter、facebook、whatsapp等等分享图标 Sharingbuttons

4-10 2,769 views

分享一个好用的第三方分享图标工具,支持主流外国网站 github:click me 使用方法 打开网址 https://sharingbuttons.io/ 按照自己想要的分享按钮,生成代码和c...
阅读全文 0

使用 PHP-FFMpeg 操作视频/音频文件

4-04 2,418 views

github官方地址 https://github.com/PHP-FFMpeg/PHP-FFMpeg php-ffmpeg An Object-Oriented library to convert video/audio files with FFmpeg / AVConv...
阅读全文 0

一个好用的php 加锁类malkusch/lock,支持redis,predis,memcached,mysql,PostgreSQL等等

3-04 10,769 views

github地址 php-lock 安装 -PHP 7.1或以上 -可选的nrk/predis以使用Predis锁。 -可选的php-pcntl扩展名,用于启用锁定而flock() 无需在CLI脚本中等待。(linux...
阅读全文 5

php carbon 计算2个日期之间的天数

2-28 5,125 views

<?php $date1 = \Carbon\Carbon::parse('2020-03-05 11:00:00'); $date2 = \Carbon\Carbon::parse('2020-03-10 11:00:00'); $diff =...
阅读全文 0

php使用生成器读取超大文件

2-08 1,873 views

<?php function getLines($file) { $f = fopen($file, 'r'); try { while ($line = fgets($f)) { yield $line; ...
阅读全文 0

php获取字符串里面的图片,xpath方式

1-31 1,957 views

代码 <?php $html = <<<str <html> <head> <title>123</title> </head> <body> <img src=&quo...
阅读全文 0

Thinkphp5 in查询结果按照in里面的顺序排

1-09 3,392 views

或许有人会注意过,但我以前真不知道 SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序...
阅读全文 0

一款好用的sitemap 生成类库 samdark/sitemap

1-07 1,911 views

github地址 安装 composer require samdark/sitemap 使用 use samdark\sitemap\Sitemap; use samdark\sitemap\Index; // create sitemap $sitemap = new Sit...
阅读全文 0

一个好用的 php websocket 类库 ratchet

12-25 3,256 views

github 官网 安装 //安装 composer require cboden/ratchet 创建自己的websocket类库 <?php namespace MyApp; use Ratchet\MessageComponentInterface; us...
阅读全文 0

一个好用的图片裁剪,水印类 intervention/image,支持gd库和image和imagick

12-04 2,188 views

安装 composer require intervention/image 使用文档:http://image.intervention.io/getting_started/introduction 类库 <?php /* * 图片处理 */ name...
阅读全文 0