Download the PHP package cardei/link-preview without Composer

On this page you can find all versions of the php package cardei/link-preview. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package link-preview

Laravel Link πŸ”— Preview (Ξ²ETA) 🚧 WIP - Work In Progress

Link preview generation πŸ› οΈ for Laravel πŸš€ applications. This package πŸ“¦ generates link previews for Laravel applications, similar to how social media platforms display link previews when a URL is shared.

Features 🌟

Compatibility βœ…

Dependencies πŸ“¦

Installation πŸ› οΈ

To install the package via Composer, run the following command:

After installation, you can publish the configuration file if you need to customize the settings:

This will create a configuration file at config/link-preview.php.

Requirements πŸ“‹

Configuration βš™οΈ

The package provides a configuration file that can be published using the vendor:publish command. By default, the package includes basic configuration for logging πŸ“ and URL processing:

To enable logging, you can add the following to your .env file:

Usage πŸ’»

Generating Link Previews πŸ”—

The package automatically detects URLs and generates previews using metadata from the target URL (e.g., titles 🏷️, images πŸ–ΌοΈ, descriptions πŸ“„). It supports platforms such as YouTube ▢️, Vimeo πŸŽ₯, and general HTML pages πŸ“„.

To use the package, simply call the link-preview service in your Laravel controllers or services:

You can then access metadata like title 🏷️, description πŸ“„, and cover image πŸ–ΌοΈ from the $preview object.

Supported Platforms 🌐

Why Use Laravel Link Preview? πŸ€”

Integration 🀝

The package provides seamless integration into your Laravel projects by including:

Example: Using in a Controller πŸ“„

TODO πŸ“

Versioning and Branches πŸ“Œ

Branches:

Documentation πŸ“š

For detailed documentation, refer to the GitHub Wiki.

Contributing 🀝

Contributions are always welcome! If you'd like to contribute, please fork this repository, make your changes, and submit a pull request πŸ“₯.

License πŸ“œ

This package is open-sourced software licensed under the MIT license.

Support πŸ†˜

For issues and feature requests, please visit the GitHub Issues page.

If you have any questions or need support, you can contact M. Catalin Cardei.

Why Laravel Link Preview is Better? πŸ†


All versions of link-preview with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/support Version 5.*|6.*|7.*|8.*|9.*
guzzlehttp/guzzle Version ^6.1|^7.1
symfony/dom-crawler Version ^3.0|^4.0|^5.0|^6.0
symfony/css-selector Version ^3.0|^4.0|^5.0|^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cardei/link-preview contains the following files

Loading the files please wait ....