Download the PHP package usmanahmedmalik/inspiring-quran without Composer
On this page you can find all versions of the php package usmanahmedmalik/inspiring-quran. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download usmanahmedmalik/inspiring-quran
More information about usmanahmedmalik/inspiring-quran
Files in usmanahmedmalik/inspiring-quran
Package inspiring-quran
Short Description A modern Laravel package for displaying random Quranic Ayats - forever-proof with zero external dependencies
License MIT
Informations about the package inspiring-quran
Inspiring Quran
A modern, lightweight, and "forever-proof" Laravel package that displays random Quranic Ayats. Inspired by Laravel's Illuminate\Foundation\Inspiring class, this package brings uplifting verses from the Quran to your terminal and applications.
Why Inspiring Quran?
- Zero External Dependencies: All Ayats are hardcoded - no API calls, no external services, no breaking changes
- Forever-Proof: Works offline and will never break due to API changes or service shutdowns
- Modern: Built for PHP 8.2+ and Laravel 10/11/12
- Multi-Language Ready: Extensible structure supports adding translations in any language
- Lightweight: Simple, focused, and efficient
- Auto-Discovery: No manual provider registration needed
Installation
You can install the package via composer:
The package will automatically register itself thanks to Laravel's auto-discovery feature.
Usage
Artisan Command
Display a random inspiring Quranic Ayat in your terminal:
Output example:
Specify a locale:
Get ayat from a specific theme:
Programmatic Usage
Static Method (Laravel Inspiring Pattern)
Instance Methods
Web Usage Examples
Display in Blade Template
API Endpoint
Daily Ayat Widget
Data Structure
Each Ayat is returned in the following format:
Features
- 75+ Carefully Curated Ayats: Uplifting verses selected for inspiration
- 7 Languages Supported: English, Dutch, French, Turkish, Urdu, German, and Spanish
- Thematic Collections: Filter ayats by theme (hope, mercy, patience, gratitude, etc.)
- Beautiful Terminal Output: Colorful, formatted display in CLI
- Web & API Ready: Easy integration in Blade views, APIs, and widgets
- Arabic Text with Translations: Proper Surah references included
- PHP 8.2+ with Modern Type Hints
- Compatible with Laravel 10, 11, and 12
- Zero External Dependencies: No API calls, works completely offline
- Forever-Proof Architecture: Will never break due to external service changes
Included Ayats
The package includes 75 verses categorized into 13 themes:
Available Themes
Enhanced Themes (10+ verses each)
- Patience (14 verses) - Verses about patience and perseverance
- Gratitude (12 verses) - Verses about being thankful
- Hope (12 verses) - Verses about hope and ease in difficulty
- Mercy (12 verses) - Verses about Allah's mercy and forgiveness
- Guidance (12 verses) - Verses about guidance and direction
Standard Themes
- Prayer (2 verses) - Verses about prayer and worship
- Peace (2 verses) - Verses about peace and tranquility
- Strength (2 verses) - Verses about strength and resilience
- Change (1 verse) - Verses about change and improvement
- Trust (2 verses) - Verses about trust in Allah
- Unity (1 verse) - Verses about unity and brotherhood
- Accountability (2 verses) - Verses about accountability and judgment
- Provision (2 verses) - Verses about sustenance and provision
All verses are carefully selected for their uplifting and inspirational nature.
Future Roadmap
- [x]
Add more Ayats (targeting 50+)✅ Done! Now includes 75 verses - [x]
Add filtering by theme/category✅ Done! - [ ] Add search functionality
- [ ] Mood-based ayat selection
- [ ] Time-based inspiration (morning/evening verses)
- [ ] Verse of the day feature
- [ ] Publish config file for customization
Contributing
Contributions are welcome! Here's how you can help:
Adding More Ayats
- Fork the repository
- Edit
src/InspiringQuran.php -
Add your Ayat to the
$ayatsarray following the existing structure: - Submit a pull request
Adding New Translations
- Add your translation to existing Ayats in the
translationsarray - Use the appropriate locale code (e.g., 'ur' for Urdu, 'tr' for Turkish, 'ar' for Arabic)
- Currently supported: English (en), Dutch (nl), French (fr), Turkish (tr), Urdu (ur), German (de), Spanish (es)
- Submit a pull request
Requirements
- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x
Testing
License
The MIT License (MIT). Please see License File for more information.
Credits
- Usman Ahmed Malik
- All contributors
Support
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Acknowledgments
- Inspired by Laravel's
Illuminate\Foundation\Inspiringclass - All praise is due to Allah (SWT)
- Quran translations are for inspirational purposes only
Note: This package is meant for inspirational purposes. For detailed Islamic study, please refer to authentic Quran translations and tafsir (commentary) from qualified scholars.
All versions of inspiring-quran with dependencies
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0