PHP
服务器端 Web 开发,从脚本到 Laravel。
PHP runs on the server: a request comes in, PHP builds the page or the JSON, and sends it back. It powers WordPress and Wikipedia's MediaWiki, and modern PHP is typed, fast and pleasant to write. This course starts from zero with PHP 8.5: scripts, variables and strings, arrays and loops, decisions and typed functions, then forms that are safe from XSS, classes and enums, database queries with PDO prepared statements, and a first look at Composer and Laravel. A last module goes further: sign-in with sessions, JSON APIs, tests with PHPUnit and a complete Laravel app.
Every example is small, and every output is traced line by line, so you always know exactly what to expect.
- 课时
- 14
- 时长
- 2 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Write and run PHP scripts from the terminal and the built-in web server
- Use strings, arrays, loops, typed functions and
matchwith strict types - Handle form input safely: validate it, and escape output against XSS
- Model data with classes, readonly properties and enums
- Query a database with PDO prepared statements, and know where Composer and Laravel fit
学习旅程
1 第 1 单元PHP basics
Where PHP runs, your first script, strings, arrays, loops, decisions, typed functions and match.
0 / 52 第 2 单元Web and objects
Forms and safe output, classes and enums, databases with PDO, and Composer with Laravel.
0 / 53 第 3 单元Next steps
Where to go after this course: sign-in, APIs, tests and a full Laravel app.
0 / 4