hamburgscleanest / laravel-fetch-site-details
Fetch details from other websites, like title, description, language, keywords, ...
Requires
- php: ^7.1
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ~3.5.0|~3.6.0
- phpunit/phpunit: ~6.0.0|~7.0.0
This package is auto-updated.
Last update: 2023-05-29 01:22:53 UTC
README
Just a small package to fetch details from other websites, like title, description, language, keywords, ...
Install
Via Composer
$ composer require hamburgscleanest/laravel-fetch-site-details
Automatic Package Discovery
Everything is automatically registered for you.
Usage
/** @var hamburgscleanest\LaravelFetchSiteDetails\Models\Site $website */ $website = LaravelSiteDetails::fetch('https://www.reddit.com/');
The following information is available:
The title of the website.
echo $website->title; // 'reddit: the front page of the internet'
The website's description.
echo $website->description; // 'reddit: the front page of the internet'
Meta keywords that were defined for the website.
echo $website->keywords; // ['reddit', 'reddit.com', 'vote', 'comment', 'submit']
The language of the website.
echo $website->language; // 'en'
Changes
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email chroma91@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.