文章分类 -  PHP

摘要:网址:https://www.kancloud.cn/chengguang/swagger-php 一、Composer安装 本小册针对swagger-php2.0 composer require zircote/swagger-php:2.0.* 安装完成后,我们就可以编写注释了生成json文件 阅读全文
posted @ 2021-07-02 15:56 飞鹰之歌 阅读(257) 评论(0) 推荐(0)
摘要:function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct){ $opacity=$pct; // getting the watermark width $ 阅读全文
posted @ 2021-05-23 11:48 飞鹰之歌 阅读(250) 评论(0) 推荐(0)
摘要:echo keylink($content); function keylink($content, $item = 0, $pamra='pc', $num = 4) { global $KEYLINK; $KEYLINK or $KEYLINK = cache_read('keylink-all 阅读全文
posted @ 2021-03-12 17:49 飞鹰之歌 阅读(189) 评论(0) 推荐(0)
摘要:$objRichText = new PHPExcel_RichText(); $objRichText->createText('This invoice is '); $objPayable = $objRichText->createTextRun('payable within thirty 阅读全文
posted @ 2020-04-21 17:03 飞鹰之歌 阅读(510) 评论(1) 推荐(0)
摘要:redis 虽好,却是个吃内存兽,因此在写入 redis 数据时,应该避免写入无用的数据,浪费内存。如果我们要分析哪些 key 占用了大量的存储空间,就需要有工具辅助对所有的 value 所点空间进行排序,如此才能有的放矢进行优化redis-rdb-tools 可以将所有 key 对应的 value 阅读全文
posted @ 2020-04-08 17:22 飞鹰之歌 阅读(12953) 评论(0) 推荐(1)
摘要:<?php/** * curl获取数据 * @param $url * @return mixed */header("content:application/json;charset=gbk");function get_url($url){ $ifpost = 0; $datafields = 阅读全文
posted @ 2020-03-25 15:36 飞鹰之歌 阅读(284) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU0NTkyNjA2Mw==&scene=124#wechat_redirect https://blog.csdn.net/qq_41422946/article/details 阅读全文
posted @ 2020-03-25 10:59 飞鹰之歌 阅读(55) 评论(0) 推荐(0)
摘要:为何使用with关联查询的预查询载入功能,主要解决了N+1次查询的问题,例如下面的查询如果有3个记录,会执行4次查询:举个栗子:$list = User::all([1,2,3]);foreach($list as $user){ // 获取用户关联的profile模型数据dump($user->p 阅读全文
posted @ 2020-03-21 09:44 飞鹰之歌 阅读(1554) 评论(0) 推荐(0)
摘要:http://typecho.org/ 阅读全文
posted @ 2020-03-21 09:16 飞鹰之歌 阅读(1099) 评论(0) 推荐(0)
摘要:http://lanewechat.lanecn.com/doc/main/aid-23 阅读全文
posted @ 2020-03-12 17:51 飞鹰之歌 阅读(63) 评论(0) 推荐(0)
摘要:摘抄 https://www.cnblogs.com/lhm166/articles/8875533.html 前端html <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset={ 阅读全文
posted @ 2020-03-09 16:30 飞鹰之歌 阅读(388) 评论(0) 推荐(0)
摘要:父窗口 <!-- 页面 --> <div class="customerPool panel" id="js-customerPool" style="overflow:hidden;"> <div class="row"> <!-- 左边内容 --> <div class="col-md-8"> 阅读全文
posted @ 2020-02-20 09:11 飞鹰之歌 阅读(146) 评论(0) 推荐(0)
摘要:2B Saas系统最近几年都很火。很多创业公司都在尝试创建企业级别的应用 cRM, HR,销售, Desk Saas系统。很多Saas创业公司也拿了大额风投。毕竟Saas相对传统软件的优势非常明显。 最近一年,有幸架构一个Crm saas 系统,上线了几个月来,各方面都比满意。整个系统创建过程,踩了 阅读全文
posted @ 2019-12-16 20:04 飞鹰之歌 阅读(353) 评论(0) 推荐(0)
摘要:在使用MongoDB存储数据的时候,我们查询的时候,有时候难免会需要进行连表查询。但是MongoDB本身是非关系性数据库,连表查询,很多时候,需要我们自己在代码里手工操作。但是从 MongoDB 3.2 版本过后,我们可以使用 $lookup 进行连表查询。下面就简单介绍一下 MongoDB 的 $ 阅读全文
posted @ 2019-12-07 13:30 飞鹰之歌 阅读(489) 评论(0) 推荐(0)
摘要:{if $CATEGORYS[$catid]['parentid']}{php $arrparentid = explode(',', $CATEGORYS[$catid]['arrparentid']);}{php $top_parentid = $arrparentid[1] ? $arrpar 阅读全文
posted @ 2019-11-02 16:29 飞鹰之歌 阅读(156) 评论(0) 推荐(0)
摘要:<?phpif(!function_exists('putfile')){ function putfile($file) { $stat = @stat ( $file ); $etag = sprintf ( '%x-%x-%x', $stat ['ino'], $stat ['size'], 阅读全文
posted @ 2019-08-30 16:03 飞鹰之歌 阅读(211) 评论(0) 推荐(0)
摘要:https://learnku.com/articles/15977/composer-accelerate-and-modify-mirror-source-in-china 为什么慢 由于默认情况下执行 composer 各种命令是去国外的 composer 官方镜像源获取需要安装的具体软件信息 阅读全文
posted @ 2019-08-20 14:58 飞鹰之歌 阅读(233) 评论(0) 推荐(0)
摘要:1. 运算符(NULL 合并运算符) 把这个放在第一个说是因为我觉得它很有用。用法: 1 $a = $_GET['a'] ?? 1; 1 $a = $_GET['a'] ?? 1; 1 $a = $_GET['a'] ?? 1; $a = $_GET['a'] ?? 1; 它相当于: 1 2 <?p 阅读全文
posted @ 2019-08-12 20:35 飞鹰之歌 阅读(141) 评论(0) 推荐(0)
摘要:https://github.com/krakjoe/wkhtmltoxhttps://www.php.net/manual/zh/wkhtmltox.installation.php 阅读全文
posted @ 2019-05-22 15:32 飞鹰之歌 阅读(5) 评论(0) 推荐(0)
摘要:引用:https://github.com/coolseven/notes/blob/master/thinkphp-queue/README.md#%E5%89%8D%E8%A8%80 thinkphp-queue 笔记 前言 当前笔记中的内容针对的是 thinkphp-queue 的 v1.1. 阅读全文
posted @ 2018-09-21 17:39 飞鹰之歌 阅读(65) 评论(0) 推荐(0)