simple ogp maker
Feel free to submit a Pull Request. However, please run the make prod
command and check the test content before submitting your Pull Request.
We recommend using Docker for this project.
make setup
Testing under development.
make test
make fix
Test before you Pull Request.
make prod
For Example.
$ogp = new \SimpleOgp\SimpleOgp('https://labo.nozomi.bike');
// Get web site content and set ogp values.
$ogp->getHtml();
// Get ogp title.
$title = $ogp->title();
// Get ogp description.
$description = $ogp->description();
// Get ogp image path.
$imagePath = $ogp->imagePath();