Download the PHP package kwadwokyeremeh/laravel-package-ide-helper without Composer
On this page you can find all versions of the php package kwadwokyeremeh/laravel-package-ide-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kwadwokyeremeh/laravel-package-ide-helper
More information about kwadwokyeremeh/laravel-package-ide-helper
Files in kwadwokyeremeh/laravel-package-ide-helper
Package laravel-package-ide-helper
Short Description Standalone IDE Helper Generator for Laravel Packages - No Laravel Required
License MIT
Informations about the package laravel-package-ide-helper
Laravel Package IDE Helper
A standalone IDE helper generator and linter for Laravel packages. Unlike other IDE helper tools, this works without requiring Laravel application or artisan command access - perfect for package development!
🎯 Why This Package?
When developing Laravel packages, you don't have access to php artisan ide-helper:generate. This tool solves that by:
- ✅ No Laravel required - Works on any PHP codebase
- ✅ Static analysis - Analyzes code without bootstrapping Laravel
- ✅ Package-aware - Understands Laravel package structure
- ✅ IDE agnostic - Works with VS Code, PHPStorm, Vim, etc.
- ✅ Zero configuration - Auto-detects namespace, vendor, and structure
- ✅ Built-in linter - Catches common issues and enforces best practices
📦 Installation
As a Development Dependency
Globally
🚀 Usage
Generate IDE Helpers
Run from your package root:
This will:
- Scan your package for Models, Facades, Commands, etc.
- Generate IDE helper files in
.idea-ide-helper/ - Create PHPDoc stubs for better autocompletion
Advanced Usage
Command Options
📝 Inline PHPDoc Injection (Recommended)
The --inline option injects comprehensive PHPDoc blocks directly into your model files!
Usage:
Example Output:
🔍 Linter
The package includes a powerful linter that checks your Laravel package for common issues, best practices, and code quality problems.
Basic Linting
Advanced Linting
Lint Command Options
Available Lint Checks
| Check | Description |
|---|---|
| general | PHP tags, namespaces, strict types, trailing whitespace |
| models | Fillable/guarded, casts, relationships, table names |
| facades | Accessor methods, proper facade structure |
| commands | Signatures, descriptions, handle methods, return types |
| providers | Register/boot methods, parent calls, config publishing |
| naming | File names, class names, naming conventions |
| types | Return types, parameter types, type hints |
| best_practices | Security issues, debug functions, hardcoded secrets |
Example Lint Output
Lint Configuration
Create a custom config file for advanced linting:
Then use it with:
📁 Generated Files
After running the generator, you'll get:
🔧 IDE Configuration
VS Code
Add to .vscode/settings.json:
PHPStorm
- Go to Settings > Languages & Frameworks > PHP
- Add
.idea-ide-helper/to the Include paths - The IDE will automatically recognize the helper files
Vim (with ALE or CoC)
Add to your .vimrc or .config/nvim/init.vim:
📝 Configuration File
Create a custom config file for advanced usage:
Example ide-helper-config.php:
🎨 Example Output
For Models
For Facades
🔄 Continuous Integration
Add to your CI/CD pipeline to keep IDE helpers up-to-date:
📋 What Gets Analyzed?
| Component | What's Detected |
|---|---|
| Models | Properties, fillable, casts, relationships, table name |
| Facades | Class name, accessor, namespace |
| Commands | Signature, description, namespace |
| Providers | Service provider classes, namespaces |
| Events | Event classes, namespaces |
| Middlewares | Middleware classes |
| Jobs | Job classes (ShouldQueue) |
| Listeners | Event listener classes |
🛠️ Requirements
- PHP 8.1 or higher
- No Laravel installation required!
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details.
📄 License
The MIT License (MIT). Please see License File for more information.
🙏 Credits
Created by Kyeremeh
Inspired by the need for better IDE support in Laravel package development.
🐛 Issues & Support
If you encounter any issues or have questions, please open an issue.
Happy Package Developing! 🎉
All versions of laravel-package-ide-helper with dependencies
nikic/php-parser Version ^4.0|^5.0
symfony/finder Version ^6.0|^7.0
symfony/console Version ^6.0|^7.0