RepositoryPHPNLHà Lan
BA

barryvdh/laravel-ide-helper

IDE Helper for Laravel

15.0ksao
1.2kfork
160issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: autocompletion

#1 Repository của tuần

5
TINIX TRENDING·Chủ đề: laravel

#5 Repository của tuần

1
TINIX TRENDING·Chủ đề: autocompletion

#1 Repository của tuần

🛠️ IDE Helper cho Laravel: Autocomplete chuẩn từ bên trong mã nguồn

Sinh PHPDoc tự động, luôn đồng bộ với codebase thực tế.

laravel-ide-helper là gói PHP hỗ trợ sinh các file PHPDoc giúp IDE (PHPStorm, VSCode, v.v.) cung cấp autocomplete chính xác cho Laravel. Thay vì cần viết tay các annotation, gói này quét trực tiếp mã nguồn dự án và tạo ra file _ide_helper.php chứa đầy đủ thông tin về Facades, Models, Fluent methods và cả real-time facades.

✨ Điểm nổi bật

  • Sinh PHPDoc cho Facades: Tạo autocomplete chính xác cho tất cả Facade thông qua php artisan ide-helper:generate.
  • Hỗ trợ real-time facades: Tự động thêm @mixin cho các facade thời gian thực nếu đã được sinh ra trong cache.
  • Tích hợp macros & mixins: Sinh PHPDoc cho các macro nếu sử dụng type hint rõ ràng khi khai báo.
  • PHPDoc cho Models: Tự động thêm annotation dựa trên cột bảng, quan hệ và accessor/mutator bằng php artisan ide-helper:models.
  • Tùy chọn ghi đè an toàn: Dùng -RW để ghi trực tiếp vào model, hoặc --nowrite để tạo file riêng, tránh trùng lặp.
  • Hỗ trợ Fluent methods: Sinh autocomplete cho các phương thức của Illuminate\Database\Query\Builder và Eloquent\Builder.
  • Cấu hình linh hoạt: Có thể publish config để tù chỉnh lớp thực thể cho interface hoặc bật/tắt helper files.
  • Tích hợp PhpStorm Meta: Tạo file .phpstorm.meta.php để IDE nhận diện đúng instance từ container.

💡 Vì sao đáng chú ý

Khác với cách thủ công thêm PHPDoc hoặc dựa vào IDE tự phân tích, laravel-ide-helper quét trực tiếp codebase để sinh annotation chính xác, giảm lỗi autocomplete và tiết kiệm thời gian viết lại tài liệu. Gói hỗ trợ cả real-time facades và macros, phù hợp với dự án Laravel lớn cần duy trì chất lượng code cao.


#Laravel #PHP #IDEHelper #Autocompletion #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryPython
EbookFoundation/free-programming-books

:books: Freely available programming books

403.1k
Nov 30, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryPHP
laravel/framework

Laravel is a web application framework with expressive, elegant syntax.

35.3k
Nov 30, 2026
RepositoryPHP
filamentphp/filament

An open-source framework for building polished, maintainable business software with Laravel.

32.6k
Nov 26, 2026
RepositoryPHP
bagisto/bagisto

Open Source eCommerce & Multi-Vendor Marketplace Platform Built with Laravel for Enterprise-Scale Commerce, Supporting 10M+ SKUs

28.4k
Nov 25, 2026
RepositoryPHP
monicahq/monica

Personal CRM and backend for your agents. Remember everything about your friends, family and business relationships.

25.9k
Dec 1, 2026
RepositoryPHP
krayin/laravel-crm

Krayin CRM is Free & Open Source CRM Built with Laravel for Customer, Lead, and Sales Management.

24.2k
Nov 30, 2026
RepositoryPHP
fruitcake/laravel-debugbar

Debugbar for Laravel (Integrates PHP Debug Bar)

19.3k
Oct 28, 2026