PHP - huyx/1 GitHub Wiki
PHP
笔记
- [Composer]] ](/huyx/1/wiki/[PECL) | [phpMyAdmin]] | [PHPUnit]] ](/huyx/1/wiki/[[PHP_CodeSniffer) | PHP-CS-Fixer
- [PhpRedis]] ](/huyx/1/wiki/[[Seaslog)
常用链接
技术、文档
- PHP The Right Way | PHP 之道
- PHP Best Practices
- DesignPatternsPHP
- How to change configuration settings | 怎样修改配置设定
概念
- 依赖注入(Dependency Injection)
软件包
- monolog
- php-console
- symfony/debug -- 调试工具,使用简单
- [tracy/tracy] -- 调试工具,使用简单,功能更强大
- hashids/hashids -- 把整数数组编码、解码,支持很多语言:PHP, Javascript, Python, ...
工具
- phpDocumentor
- apigen -- 比较好用
技巧
保存密码,校验密码
用到的函数:
- password_hash
- password_verify
特点:
- 要求 PHP 5.5.0 及以上版本
- 自动加盐,对于同一个密码,每次 hash 结果不同
参考: