PHPackages                             leewillis77/cached-embed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. leewillis77/cached-embed

ActiveLibrary[Caching](/categories/caching)

leewillis77/cached-embed
========================

Laravel package to cache embed information from https://github.com/oscarotero/Embed. Works with Laravel 5.5 or higher

0.8.2(5y ago)82.6k2MITPHPPHP ^7.0|^8.0

Since Feb 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/leewillis77/cached-embed)[ Packagist](https://packagist.org/packages/leewillis77/cached-embed)[ Docs](https://github.com/leewillis77/cached-embed)[ RSS](/packages/leewillis77-cached-embed/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (17)Used By (0)

CachedEmbed
===========

[](#cachedembed)

A package for Laravel 5.5+ and above to cache embed information retrieved using the  package.

Treeware
--------

[](#treeware)

If you use this package in production, we ask that you [**buy the world some trees**](https://ecologi.com/ademtisoftware?gift-trees) to thank us for our work. By contributing to our forest you’ll be creating employment for local families and restoring wildlife habitats.

[![We offset our carbon footprint via Ecologi](https://camo.githubusercontent.com/95002e2454df18823e8d797ff8f2da6105f3a8b0a26918b1e661b780a3d2fab9/68747470733a2f2f746f6f6c6b69742e65636f6c6f67692e636f6d2f6261646765732f6370772f3565336162643862643532613633303031373162656164623f626c61636b3d74727565266c616e6473636170653d74727565)](https://ecologi.com/ademtisoftware?gift-trees)Installation
------------

[](#installation)

Add the package to your Laravel project using composer:

```
$ composer require leewillis77/cached-embed
```

Configuration
-------------

[](#configuration)

You can publish the configuration file using the following artisan command:

```
$ php artisan vendor:publish --provider="Leewillis77\CachedEmbed\CachedEmbedServiceProvider" --tag="config"
```

You can change the following values in the configuration file (`config/cachedembed.php`):

- `expiry` The default expiry time of cached embed data (in minutes).
- `store` The name of cache store to use to store embed data. This must be a valid cache store as defined in `config/cache.php`

Usage
-----

[](#usage)

Simply use `CachedEmbed::create` instead of `Embed::create`, e.g

```
