Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nkwtnb committed Mar 7, 2022
1 parent a976d46 commit b983427
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# OGParser
This is a library for get OGP.

## Install
```
$ composer require nkwtnb/ogparser
```

## Usage
```
<?php
use nkwtnb\ogparser\Ogparser;
require_once(__DIR__ . '/vendor/autoload.php');
$ogp = new Ogparser("https://example.com");
var_dump($ogp->get_url());
var_dump($ogp->get_title());
var_dump($ogp->get_description());
var_dump($ogp->get_image());
var_dump($ogp->get_site_name());
```

## License
MIT

0 comments on commit b983427

Please sign in to comment.