Download the PHP package huysynf/laravel-indexnow without Composer
On this page you can find all versions of the php package huysynf/laravel-indexnow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download huysynf/laravel-indexnow
More information about huysynf/laravel-indexnow
Files in huysynf/laravel-indexnow
Package laravel-indexnow
Short Description Laravel package for IndexNow API integration - Automatically submit URLs to search engines
License MIT
Informations about the package laravel-indexnow
Laravel IndexNow
Laravel package for IndexNow API integration. Automatically submit URLs to search engines (Bing, Google, Yandex, etc.) when content is created, updated, or deleted.
Features
✅ Automatic URL Submission - Submit URLs automatically when models change
✅ Queue Support - Async submission with retry logic
✅ Rate Limiting - Prevent duplicate submissions
✅ Event-Driven - Use Laravel events for flexible integration
✅ REST API - Full API for manual submissions
✅ Artisan Commands - CLI tools for management
✅ Statistics - Track submission success/failure
✅ Laravel 8-12 Support - Compatible with Laravel 8, 9, 10, 11, and 12
Installation
Install via Composer:
Publish the config file (migrations are loaded automatically):
Run migrations:
Generate an API key:
Configuration
Edit config/indexnow.php:
Usage
1. Automatic Submission (Recommended)
Add models to watch in config/indexnow.php:
Implement getIndexNowUrl() method in your models:
That's it! URLs will be submitted automatically when posts are created, updated, or deleted.
2. Manual Submission via Facade
3. Manual Submission via Events
4. Artisan Commands
Admin Dashboard
Optional admin dashboard UI for managing IndexNow submissions.
Access: /admin/indexnow (requires authentication by default)
Configuration (config/indexnow.php):
Features:
- Statistics (weekly, success rate, total passed)
- Manual URL submission
- Resubmit failed URLs
- Recent submissions table
5. REST API
Submit URL:
Get Statistics:
Get Submissions:
Resubmit Failed:
API Middleware Configuration
Customize middleware for API routes in config/indexnow.php:
Common Use Cases:
Require Authentication:
Add Rate Limiting:
Custom Middleware:
API Key Verification
IndexNow requires a verification file at https://yourdomain.com/{api_key}.txt.
This package automatically serves this file. After generating your API key, verify it works:
Queue Configuration
For better performance, enable queue processing:
- Set up a queue driver (database, redis, etc.)
- Run queue worker:
Rate Limiting
The package prevents submitting the same URL multiple times within a short period (default: 60 seconds).
Configure in config/indexnow.php:
Statistics & Monitoring
View submission statistics:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Huysynf
- Inspired by the WordPress IndexNow plugin by Microsoft Bing
License
The MIT License (MIT). Please see License File for more information.
Support
- 📧 Email: [email protected]
- 🐛 Issues: GitHub Issues
- 📖 Documentation: Full Documentation
Resources
All versions of laravel-indexnow with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/queue Version ^8.0|^9.0|^10.0|^11.0|^12.0