Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)