Symfony

Symfony

BACKEND

เฟรมเวิร์ก PHP แบบ full-stack ที่พัฒนาโดย SensioLabs ด้วยสถาปัตยกรรมแบบโมดูลที่อิงจาก component ที่ใช้ซ้ำได้ รูปแบบการออกแบบที่แข็งแกร่ง (MVC, Dependency Injection), ระบบ bundle ที่ขยายได้, Doctrine ORM ที่ทรงพลัง และระบบนิเวศที่หลากหลายสำหรับสร้างเว็บแอปพลิเคชันที่ปรับขนาดและดูแลรักษาได้

สิ่งที่คุณจะได้เรียนรู้

PHP สมัยใหม่ พร้อม strict typing, PHP 8+ attribute และ PSR-4 autoloading

สถาปัตยกรรม MVC ด้วย controller, route และ Twig template engine

Dependency Injection แบบ native ด้วย autowiring และการตั้งค่า YAML/XML/PHP

Doctrine ORM พร้อม entity, repository, migration และ DQL

Bundle ที่ใช้ซ้ำได้สำหรับความเป็นโมดูลและการจัดระเบียบโค้ด

Symfony Console สำหรับคำสั่ง CLI และสคริปต์อัตโนมัติ

Security component สำหรับการยืนยันตัวตน, การอนุญาต และ firewall

Form component พร้อมการตรวจสอบ, การป้องกัน CSRF และ theming

Messenger component สำหรับ async/queue ด้วย transport (RabbitMQ, Redis)

การทดสอบอย่างครอบคลุม (PHPUnit, functional test, Panther สำหรับ E2E)

หัวข้อสำคัญที่ต้องเชี่ยวชาญ

แนวคิดที่สำคัญที่สุดเพื่อเข้าใจเทคโนโลยีนี้และประสบความสำเร็จในการสัมภาษณ์

1

PHP: namespace, PSR-4 autoloading, trait, interface, strict typing PHP 8+

2

สถาปัตยกรรม Symfony: HttpKernel, วงจร Request/Response, event, kernel listener

3

Controller: routing, annotation/attribute, พารามิเตอร์ request, ประเภท response

4

Routing: YAML/annotation/attribute, พารามิเตอร์ route, requirement, prefix

5

Dependency Injection: service, autowiring, service container, compiler pass

6

Doctrine ORM: entity, annotation/attribute, association (@OneToMany, @ManyToOne)

7

Doctrine repository: คิวรีแบบกำหนดเอง, QueryBuilder, DQL (Doctrine Query Language)

8

Migration: DoctrineMigrationsBundle, versioning, migration up/down

9

Twig: ไวยากรณ์ template, filter, function, การสืบทอด (extends, block), include

10

ฟอร์ม: FormType, form builder, ข้อจำกัดการตรวจสอบ, ประเภทฟอร์มแบบกำหนดเอง

11

การตรวจสอบ: annotation ข้อจำกัด (@NotBlank, @Email), validator แบบกำหนดเอง, group

12

ความปลอดภัย: ผู้ให้บริการการยืนยันตัวตน, voter, firewall, ลำดับชั้นบทบาท, จำฉันไว้

13

Event: EventDispatcher, event subscriber, kernel event (request, response, exception)

14

Serializer: normalization, denormalization, group, normalizer แบบกำหนดเอง, format (JSON, XML)

15

Messenger: message handler, transport, การประมวลผลแบบ async, กลยุทธ์การลองใหม่

16

Console: คำสั่ง (คลาส Command), input/output, helper, แถบความก้าวหน้า

17

HTTP Client: component HttpClient, request, การยืนยันตัวตน, กลไกการลองใหม่

18

Cache: cache pool, cache tag, adapter (Redis, APCu, Filesystem)

19

Bundle: โครงสร้าง bundle, extension class, การตั้งค่า, bundle ของบุคคลที่สาม

20

การทดสอบ: PHPUnit, WebTestCase, functional test, fixture, mock

21

ประสิทธิภาพ: profiler, กลยุทธ์ cache, lazy loading, opcache, PHP 8 preloading

22

API Platform: REST/GraphQL API บน Symfony, serialization, filter, การแบ่งหน้า

23

การ deploy: Symfony CLI, ตัวแปรสภาพแวดล้อม (.env), Docker, composer optimize

บทความ Symfony ล่าสุด

ค้นพบบทความและคู่มือล่าสุดเกี่ยวกับ Symfony

ดูบทความ Symfony ทั้งหมด