momosc / push-urls
Push urls to search engine
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/momosc/push-urls
Requires
- php: >=7.0
Requires (Dev)
- laravel/laravel: ~5.5
- mockery/mockery: 1.0.x-dev
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2025-10-29 02:16:14 UTC
README
NOW, Only Support baidu.
Features
- Support actions:
- Sogou
- 360
Installation
Required
- PHP 7.0 +
- Laravel 5.5 +
You can install the package using composer
$ composer require composer require momosc/push-urls
Then add the service provider to config/app.php
Momosc\LaravelPushUrls\PushUrlsServiceProvider::class
Publish the migrations file:
$ php artisan vendor:publish --provider='Momosc\LaravelPushUrls\PushUrlsServiceProvider::class' --tag="migrations"
As optional if you want to modify the default configuration, you can publish the configuration file:
$ php artisan vendor:publish --provider='Momosc\LaravelPushUrls\PushUrlsServiceProvider::class' --tag="config"
And create tables:
$ php artisan migrate
Usage
use Momosc\LaravelPushUrls\PushUrlsServiceProvider; class News { use BaiduTrait; public function index() { $urls = ['http://www.***.com']; $this->pushUrls($urls); } }
License
MIT