一个php技术栈后端猿的知识储备大纲

一个php技术栈后端猿的知识储备大纲

<h1 align=”center”>Easy Tips</h1>

<p align=”center”>
<a href=”https://github.com/TIGERB/easy-tips#目录”>
  <img src=”https://img.shields.io/badge/php-done-brightgreen.svg” alt=”php”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/mysql”>
  <img src=”https://img.shields.io/badge/mysql-doing-blue.svg” alt=”mysql”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/redis”>
  <img src=”https://img.shields.io/badge/redis-doing-blue.svg” alt=”redis”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/patterns”>
  <img src=”https://img.shields.io/badge/patterns-done-brightgreen.svg” alt=”patterns”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/algorithm”>
  <img src=”https://img.shields.io/badge/algorithm-%CE%B1-yellowgreen.svg” alt=”algorithm”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/data-structure”>
  <img src=”https://img.shields.io/badge/data–structure-doing-blue.svg” alt=”data-structure”>
</a>
<a href=”https://github.com/TIGERB/easy-tips/tree/master/network”>
  <img src=”https://img.shields.io/badge/network-doing-blue.svg” alt=”network”>
</a>
</p>

<br>

> 一个php技术栈后端猿的知识储备大纲

## 前言

为什么把php,mysql,redis放在前三位?因为php/mysql/redis基础是一个当代phper的根基。

## 备注

状态        | 含义
——— | ——-
not-start | 当前未开始总结
doing     | 总结中
α         | 目前仅供参考未修正和发布
done      | 总结完毕
fixing    | 查漏补缺修改中

## 目录

– PHP(doing)

  – 符合PSR的PHP编程规范(含个人建议)

    – [实例](https://github.com/TIGERB/easy-tips/blob/master/php/standard.php)
    – [文档](https://github.com/TIGERB/easy-tips/blob/master/php/standard.md)
    – [经验](https://github.com/TIGERB/easy-tips/blob/master/php/artisan.md)

  – 基础知识[读(R)好(T)文(F)档(M)]

    – [数据类型](http://php.net/manual/zh/language.types.php)
    – [运算符优先级](http://php.net/manual/zh/language.operators.precedence.php)
    – [string函数](http://php.net/ref.strings.php)
    – [array函数](http://php.net/manual/zh/ref.array.php)
    – [math函数](http://php.net/manual/zh/ref.math.php)
    – [面向对象](http://php.net/manual/zh/language.oop5.php)
    – 版本新特性

      – [7.1](http://php.net/manual/zh/migration71.new-features.php)
      – [7.0](http://php.net/manual/zh/migration70.new-features.php)
      – [5.6](http://php.net/manual/zh/migration56.new-features.php)
      – [5.5](http://php.net/manual/zh/migration55.new-features.php)
      – [5.4](http://php.net/manual/zh/migration54.new-features.php)
      – [5.3](http://php.net/manual/zh/migration53.new-features.php)

  – [记一些坑](https://github.com/TIGERB/easy-tips/blob/master/pit.md#记一些坑)

– Mysql(doing)

  – [常用sql语句](https://github.com/TIGERB/easy-tips/blob/master/mysql/sql.md)
  – 引擎
    – InnoDB
    – MyISAM
    – Memory
    – Archive\Blackhole\CSV\Federated\merge\NDB
  – 事务隔离级别
    – READ UNCOMMITTED:未提交读
    – READ COMMITTED:提交读/不可重复读
    – REPEATABLE READ:可重复读(MYSQL默认事务隔离级别)
    – SERIALIZEABLE:可串行化
  – 索引
    – B-Tree
    – 哈希索引(hash index)
    – 空间数据索引(R-Tree)
    – 全文索引
  – 锁
    – 悲观锁
    – 乐观锁
  – 分表
    – 垂直分表
    – 水平分表
  – sql优化
  – 主从配置

– Redis(doing)

  – 常用命令
  – 实现原理&与memcache区别
  – 常见使用场景实战
    – [缓存](https://github.com/TIGERB/easy-tips/blob/master/redis/cache.php)
    – [队列](https://github.com/TIGERB/easy-tips/blob/master/redis/queue.php)
    – [悲观锁](https://github.com/TIGERB/easy-tips/blob/master/redis/pessmistic-lock.php)
    – [乐观锁](https://github.com/TIGERB/easy-tips/blob/master/redis/optimistic-lock.php)
    – [订阅/推送](https://github.com/TIGERB/easy-tips/blob/master/redis/subscribe-publish)

– 设计模式(done/fixing)

  – [概念](https://github.com/TIGERB/easy-tips/blob/master/patterns/thought.md#设计模式)

  – 创建型模式实例

    – [单例模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/singleton/test.php)
    – [工厂模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/factory/test.php)
    – [抽象工厂模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/factoryAbstract/test.php)
    – [原型模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/prototype/test.php)
    – [建造者模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/builder/test.php)

  – 结构型模式实例

    – [桥接模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/bridge/test.php)
    – [享元模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/flyweight/test.php)
    – [外观模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/facade/test.php)
    – [适配器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/adapter/test.php)
    – [装饰器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/decorator/test.php)
    – [组合模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/composite/test.php)
    – [代理模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/proxy/test.php)
    – [过滤器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/filter/test.php)

  – 行为型模式实例

    – [模板模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/template/test.php)
    – [策略模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/strategy/test.php)
    – [状态模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/state/test.php)
    – [观察者模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/observer/test.php)
    – [责任链模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/chainOfResponsibility/test.php)
    – [访问者模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/visitor/test.php)
    – [解释器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/interpreter/test.php)
    – [备忘录模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/memento/test.php)
    – [命令模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/command/test.php)
    – [迭代器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/iterator/test.php)
    – [中介者器模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/mediator/test.php)
    – [空对象模式](https://github.com/TIGERB/easy-tips/blob/master/patterns/nullObject/test.php)

– [数据结构(doing)](https://github.com/TIGERB/easy-tips/blob/master/data-structure.md)

  – 数组
  – 堆/栈
  – 树
  – 队列
  – 链表
  – 图
  – 散列表

– 算法(doing)

  – 算法分析

    – 时间复杂度/空间复杂度/正确性/可读性/健壮性

  – 算法实战

    – 排序算法(α)

      – [冒泡排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/bubble.php)
      – [快速排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/quick.php)
      – [选择排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/select.php)
      – [插入排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/insert.php)
      – [归并排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/merge.php)
      – [希尔排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/shell.php)
      – [基数排序](https://github.com/TIGERB/easy-tips/blob/master/algorithm/sort/radix.php)

– 网络基础(doing)

  – [互联网协议概述](https://github.com/TIGERB/easy-tips/blob/master/network/internet-protocol.md#互联网协议)
  – [client和nginx简易交互过程](https://github.com/TIGERB/easy-tips/blob/master/network/nginx.md#client和nginx简易交互过程)
  – [nginx和php-fpm简易交互过程](https://github.com/TIGERB/easy-tips/blob/master/network/nginx.md#nginx和php简易交互过程)
  – [http](https://github.com/TIGERB/easy-tips/blob/master/network/http.md)
    – 报文
      – 报文头部
      – 报文体
    – 常见13种状态码
    – 方法method
    – https
    – http2
    – websocket

– 计算机基础(doing)

  – [linux常用命令](https://github.com/TIGERB/easy-tips/blob/master/linux/command.md)
  – shell

– 高并发相关(not-start)

## 测试用例

### 设计模式

运行脚本: php patterns/[文件夹名称]/test.php

“`
例如,

测试责任链模式: 运行 php patterns/chainOfResponsibility/test.php

运行结果:

请求5850c8354b298: 令牌校验通过~
请求5850c8354b298: 请求频率校验通过~
请求5850c8354b298: 参数校验通过~
请求5850c8354b298: 签名校验通过~
请求5850c8354b298: 权限校验通过~
“`

### 算法

运行脚本: php algorithm/test.php [算法名称|空获取列表]

“`
例如,

测试冒泡排序: 运行 php algorithm/test.php bubble

运行结果:

==========================冒泡排序=========================
Array
(
    [0] => 11
    [1] => 67
    [2] => 3
    [3] => 121
    [4] => 71
    [5] => 6
    [6] => 100
    [7] => 45
    [8] => 2
)
=========上为初始值==================下为排序后值=============
Array
(
    [0] => 2
    [1] => 3
    [2] => 6
    [3] => 11
    [4] => 45
    [5] => 67
    [6] => 71
    [7] => 100
    [8] => 121
)
“`

### 常见redis运用实现

运行脚本: php redis/test.php [名称|空获取列表]

“`
例如,

测试悲观锁: 运行 php redis/test.php p-lock

运行结果:

执行count加1操作~

count值为:1

“`

## 纠错

如果大家发现有什么不对的地方,可以发起一个[issue](https://github.com/TIGERB/easy-tips/issues)或者[pull request](https://github.com/TIGERB/easy-tips),
我会及时纠正,THX~

> 补充:发起pull request的commit message请参考文章[Commit message编写指南](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)

## 英文版

因为国外开发者的要求和个人的时间有限,征集大家有兴趣的可以把本项目进行英文版翻译。希望国外的developer也可以受益于这个项目~

翻译文件认领申请:<https://github.com/TIGERB/easy-tips/issues/36>

## 感谢

感谢以下朋友的issue或pull request:

– @[faynwol](https://github.com/faynwol)
– @[whahuzhihao](https://github.com/whahuzhihao)
– @[snriud](https://github.com/snriud)
– @[fhefh2015](https://github.com/fhefh2015)
– @[RJustice](https://github.com/RJustice)
– @[ooing](https://github.com/ooing)
– @[shellus](https://github.com/shellus)
– @[entimm](https://github.com/entimm)
– @[jealone](https://github.com/jealone)
– @[cugblbs](https://github.com/cugblbs)
– @[CmderQ](https://github.com/CmderQ)
– @[neetdai](https://github.com/neetdai)
– @[yangqiphp](https://github.com/yangqiphp)

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/113814.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 负采样_欠采样

    负采样_欠采样参考1参考2

    2022年4月19日
    65
  • Android版MT4使用方法,安卓版手机MT4使用手册「建议收藏」

    Android版MT4使用方法,安卓版手机MT4使用手册「建议收藏」一、安卓Android系统MT4下载安装1、下载安装:用户在安卓市场(应用市场)里直接输入MT4、“外汇交易软件”、“外汇交易系统”等进行搜索,选择左边图片中的软件后下载安装。(请认准下方标志)(MT4官方标志)2、登录:在成功安装后,会自动转跳到右图中的页面,客户根据自己的实际情况,选择登录模拟还是真实账户进行登录。3、选择服务器:客户需要在搜索框里输入“onef”系统会自动搜索出欧…

    2022年5月20日
    68
  • JavaScript(1)高阶函数filter、map、reduce

    JavaScript(1)高阶函数filter、map、reduce前言需求:有这样一个数组[10,20,110,200,60,30,40]1.筛选出数组中小于100的元素2.将筛选出的每个元素的值x23.完成第2步之后,将数组中的所有元素加起来

    2022年7月29日
    5
  • pad图和n-s图_N S W

    pad图和n-s图_N S W(未完成_N-S图、PAD图概念未写)1、记录StudentRecord给出即将大学毕业的学生的姓名和平均分(GPA)。我们的目的是建立一个参加毕业典礼的学生表。候选毕业的学生表从文件”StudRecs”读入。因为学校规定:GPA低于minGPA的学生不能毕业,因此那些平均分低于minGPA的学生不参加毕业典礼。另外,记录那些选择不参加毕业典礼的学生名单,将名单保存至文件”NoAttend”中,按每行一个学生姓名保存。删除这些选择不参加毕业典礼的学生,最终生成参加毕业典礼的学生表。2、画出下列程序流

    2022年8月13日
    3
  • kindle推送服务_kindle推送服务

    kindle推送服务_kindle推送服务微信是个好东西,信息量超大,正能量的东西居多,但信息过载的滋味也很不好受,浏览了一大堆铺天盖地的信息后,关上手机后大脑又重新回到空白。所以还是喜欢用RSS聚合功能,自己去订阅优秀的博客或新闻,当有更新

    2022年8月2日
    3
  • mysql explain不准确_mysql explain预估剖析「建议收藏」

    mysql explain不准确_mysql explain预估剖析「建议收藏」引子:使用MySQL建立了一张表country,总共有才3121行记录。但是使用explainselectcount(*)fromcountry;的时候,发现行数rows达到6897,让我大吃一惊。mysql>explainselectcount(*)fromcountry;+—-+————-+———+——+————–…

    2022年10月17日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号