Download the PHP package qit/helper without Composer
On this page you can find all versions of the php package qit/helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package helper
Qit Helper Package
A collection of helper utilities for Laravel applications, providing YouTube video embedding and image processing capabilities.
Description
This package provides essential helper functions for Laravel applications, including YouTube video iframe generation and image resizing with caching capabilities. Perfect for content management systems and media-heavy applications.
Installation
You can install the package via Composer:
Note: This package requires the Intervention Image library for image processing (V3):
Configuration
After installation, you need to register the service provider in your Laravel application.
Laravel 5.5+ (Auto-Discovery)
The package will automatically register itself via Laravel's package auto-discovery feature.
Manual Registration (Laravel 5.4 and below)
Add the service provider to your config/app.php file:
Usage
YouTube Video Embedding
Generate YouTube video iframes or links from YouTube URLs:
Supported YouTube URL formats:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_ID
Image Resizing and Caching
Resize images and create cached versions with optional small thumbnails:
Image file structure created:
E-commerce Order Status Management
Manage order statuses with predefined status codes and names:
Available Order Statuses:
0- Pending1- Confirmed2- Processing3- Shipped4- Cancelled5- Delivered
Features
- YouTube Integration: Convert YouTube URLs to embedded iframes or links
- Image Processing: Resize images with automatic caching and custom folder names
- E-commerce Support: Order status management with predefined status codes
- Flexible Dimensions: Support for aspect ratio preservation
- Thumbnail Generation: Create small versions of images
- Laravel Integration: Service provider and auto-discovery support
- PSR-4 Autoloading: Modern PHP standards compliance
Requirements
- PHP >= 7.2.5 || ^8.0
- Laravel >= 8.0 (supports up to Laravel 12.0)
- Intervention Image ^3.0 (for image processing)
- GD or Imagick PHP extension
File Structure
Error Handling
The package includes basic error handling, but you should wrap calls in try-catch blocks for production use:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This package is open-sourced software licensed under the MIT license.
Author
Ahmed Saad Hassan
- Email: [email protected]
Changelog
v1.0.0 (2025-07-29)
- Initial release
- YouTube video iframe generation
- Image resizing with caching support and custom folder names
- E-commerce order status management
- Laravel service provider integration
- Support for Laravel 8.0 through 12.0
All versions of helper with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
intervention/image Version ^3.0