Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Embed

Laravel Embed Laravel Package

bensampo/laravel-embed

Embed YouTube, Vimeo, and other media in Laravel Blade views with a simple component. Laravel Embed offers privacy-friendly no-cookie modes, lazy loading, responsive sizing, and custom drivers, so you can drop video embeds into templates without hand-writing iframes.

Deep Wiki
Context7

Effortless responsive embeds for videos, slideshows and more.

Frequently asked questions about Laravel Embed
What is bensampo/laravel-embed used for in a Laravel app?
It is a Blade presentation-layer helper for adding responsive embeds such as YouTube, Vimeo, and slideshows to Laravel views. It focuses on markup generation, privacy-friendly modes, lazy loading, and responsive sizing rather than media storage or transcoding.
How do I install bensampo/laravel-embed in Laravel?
Install it with Composer, then optionally publish config or views if the package provides those assets, and use the Blade component in your templates. Because the repository is listed as unknown, confirm the canonical source, license, and Laravel/PHP constraints before adding it to production.
Which Laravel and PHP versions does bensampo/laravel-embed support?
The provided context does not list exact Laravel or PHP version constraints, and the repository is marked unknown. Check the canonical composer.json and release history, then run a proof of concept against your current Laravel and PHP baseline before adopting it.
Does bensampo/laravel-embed support privacy-friendly YouTube no-cookie embeds?
Yes, the package overview advertises privacy-friendly no-cookie modes for providers such as YouTube. You should still verify the generated iframe markup, cookie consent behavior, and CSP frame-src rules in your own application.
Is bensampo/laravel-embed safe for user-supplied embed URLs?
Treat any user-supplied embed URL as untrusted and allowlist only approved provider URLs before rendering. The package should not become an arbitrary iframe injection path; sanitize inputs and keep URL validation in application-owned code.
Does bensampo/laravel-embed work with lazy loading and responsive sizing?
The package advertises lazy loading and responsive sizing for video and slideshow embeds. Test the generated markup against your CSS framework and accessibility requirements, since responsive embed CSS can conflict with existing layout rules.
Can I use bensampo/laravel-embed in a headless or React/Vue Laravel app?
It provides little value in API-first, React/Vue SPA, or heavily headless frontends unless Blade still renders the embed markup server-side. If your frontend owns embed components, use that layer instead of adding a server-side Blade dependency.
How do I add or customize embed providers in bensampo/laravel-embed?
The blurb mentions custom drivers, so provider-specific behavior may be extendable, but confirm the public API and stability in the source. Wrap the vendor component in an application-owned component such as x-app.embed so templates do not depend directly on bensampo/laravel-embed.
What are the maintenance and security risks of bensampo/laravel-embed?
The main risks are an unverified source repository, modest adoption signals, unclear maintenance activity, Laravel upgrade compatibility, CSP conflicts, and third-party cookie or privacy implications. Pin the version, monitor advisories, and keep a fallback plan to fork or replace it because the functional surface is small.
What are alternatives to bensampo/laravel-embed for Blade video embeds?
A small application-owned Blade component with URL allowlisting is a practical alternative, especially if you only need YouTube and Vimeo markup. You can also fork the package or choose another vetted embed package after checking maintenance, tests, and Laravel/PHP support.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager