nguyenanhung / seo
Search Engine Optimization with PHP
v3.2.1
2026-05-16 17:59 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- nguyenanhung/escape-helper: ^3.0 || ^2.0
- nguyenanhung/hashids-helper: ^2.0
- nguyenanhung/nanoid-helper: ^2.0
- nguyenanhung/slug-helper: ^3.0 || ^2.0
Requires (Dev)
- kint-php/kint: >=3.0
Suggests
- ext-curl: Need support CURL
- ext-json: Need support JSON
- nguyenanhung/nanoid-helper: Need support for helper function randomNanoId()
This package is auto-updated.
Last update: 2026-05-16 18:01:43 UTC
README
Search Engine Optimization Package
Version
- V1.x, V2.x support all PHP version
>=5.6 - V3.x support all PHP version
>=7.0
Usage
Một số hàm tiện ích dùng cho SEO Website
Get AddThis Script
<?php echo add_this_script('add_this_id');
Get Facebook Comment Box
<?php echo facebook_comments('url_comment');
Facebook Social
<?php require_once __DIR__ . '/vendor/autoload.php'; $fb = new \nguyenanhung\SEO\Social\Facebook(); $fb->setAppId('1234') ->setAdminId('456') ->setRedirectUrl('https://nguyenanhung.com'); // FB Share Link $data = $fb->createShareLink('link')->getLink(); // FB Share Count $data = $fb->graphShare('link')->shareCount(); // FB Comment Count $data = $fb->graphShare('link')->commentCount();
Google Plus
<?php require_once __DIR__ . '/vendor/autoload.php'; $google = new \nguyenanhung\SEO\Social\GooglePlus(); // FB Share Link $data = $google->createShareLink('link')->getLink();
<?php require_once __DIR__ . '/vendor/autoload.php'; $twitter = new \nguyenanhung\SEO\Social\Twitter(); // FB Share Link $data = $twitter->createShareLink('link')->getLink();
Liên hệ
Nếu có bất cứ thông tin nào cần trao đổi và tìm hiểu, vui lòng liên hệ theo thông tin sau
| Name | Skype | ||
|---|---|---|---|
| Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |
From Hanoi with Love <3