Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diversen/get-meta-tags
Simple way to get title and meta tags from external website using Curl and Dom
https://github.com/diversen/get-meta-tags
curl dom meta-tags php-get-meta-tags
Last synced: 11 days ago
JSON representation
Simple way to get title and meta tags from external website using Curl and Dom
- Host: GitHub
- URL: https://github.com/diversen/get-meta-tags
- Owner: diversen
- Created: 2016-11-06T10:07:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T10:23:58.000Z (about 8 years ago)
- Last Synced: 2024-11-16T17:16:55.620Z (about 1 month ago)
- Topics: curl, dom, meta-tags, php-get-meta-tags
- Language: PHP
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-meta-tags
PHP composer package for getting title and meta-tags
Get meta tags using curl and DOM## Install
composer require diversen/get-meta-tags
## Usage:
~~~php
// include_once "../../vendor/autoload.php";
use diversen\meta;$m = new meta();
// Simple usage, get's title, description, and keywords by default
$ary = $m->getMeta('https://github.com/diversen/get-meta-tags');
print_r($ary);// With more params
$ary = $m->getMeta('https://github.com/diversen/get-meta-tags', array ('description' ,'keywords'), $timeout = 10);
print_r($ary);
~~~## License
MIT © [Dennis Iversen](https://github.com/diversen)