nguyenanhung / seo
Search Engine Optimization with PHP
Installs: 15 261
Dependents: 8
Suggesters: 7
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- nguyenanhung/escape-helper: ^2.0
- nguyenanhung/hashids-helper: ^2.0
- nguyenanhung/nanoid-helper: ^2.0
- nguyenanhung/slug-helper: ^3.0 || ^2.0
- paragonie/random_compat: >=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()
- dev-master
- v3.x-dev
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.7.9
- v3.0.7.8
- v3.0.7.7
- v3.0.7.6
- v3.0.7.5
- v3.0.7.4
- v3.0.7.3
- v3.0.7.2
- v3.0.7.1
- v3.0.7
- v3.0.6.3
- v3.0.6.2
- v3.0.6.1
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.x-dev
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.9.4
- v2.0.9.3
- v2.0.9.2
- v2.0.9.1
- v2.0.9
- v2.0.8.1
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2.2
- v1.0.2.1
- v1.0.2
- v1.0.1
- v1.0
This package is auto-updated.
Last update: 2024-10-21 19:51:05 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
From Hanoi with Love <3