mohammadsalmani28 / video
Video package is a package for generating online video services like youtube, aparat etc!
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel
This package is auto-updated.
Last update: 2025-03-28 08:28:20 UTC
README
Video Generator is a package for laravel. This package created for generate embed code in your project. thanks for using my package!
Installation
Step 1
Run following command in root directory of your project:
composer require mohammadsalmani28/video
Step 2 : Add Provider
Now you have to add this line in 'app.php' located in 'config' directory of your laravel project in the providers array:
Mohammadsalmani28\Video\VideoServiceProvider::class,
Done :)
Usage:
This package should be used in your view files.
Code | Description |
---|---|
@video('service_name', 'video_url') |
Generate and return embed code |
Examples:
@video('aparat', 'https://www.aparat.com/v/8vam2')
@video('youtube', 'https://www.youtube.com/watch?v=ImtZ5yENzgE')
@video('tamasha', 'https://tamasha.com/v/0keJL')
@video('namasha', 'https://www.namasha.com/v/vEePZkl5')
@video('vimeo', 'https://vimeo.com/151390908')
License
The MIT License (MIT). Please see License File for more information.