Code Monkey home page Code Monkey logo

think-site-pusher's Introduction

think-site-pusher

ThinkPHP 扩展包 网站链接提交

Latest Stable Version Total Downloads Latest Unstable Version

安装

composer require xiaodi/think-site-pusher

配置

默认配置

项目根目录 config/push.php

临时配置

use EasyPush\Facade\Pusher;

$config = ['site' => 'xxx', 'token' => 'xxx'];
Pusher::baidu($config)->urls($urls);

使用

Facade

use EasyPush\Facade\Pusher;

$urls = [
  'https://www.xiaodim.com/index.html',
  'https://www.xiaodim.com/2019/10/25/thinkphp6-rpc-tutorial/'
]

// 推送链接
Pusher::baidu()->push($urls);

// 更新链接
Pusher::baidu()->update($urls);

// 删除链接
Pusher::baidu()->delete($urls);

助手函数

$urls = [
  'https://www.xiaodim.com/index.html',
  'https://www.xiaodim.com/2019/10/25/thinkphp6-rpc-tutorial/'
]

// 推送链接
app('pusher')->baidu()->push($url);

// 更新链接
app('pusher')->baidu()->update($urls);

// 删除链接
app('pusher')->baidu()->delete($urls);

think-site-pusher's People

Contributors

edenleung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

think-site-pusher's Issues

thinkphp5.1 不能安装

提示- xiaodi/think-site-pusher v1.0.1 requires guzzlehttp/guzzle ^6.4 -> satisfiable by guzzlehttp/guzzle[6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev] but these conflict with your requirements or minimum-stability.
- xiaodi/think-site-pusher v1.0.0 requires guzzlehttp/guzzle ^6.4 -> satisfiable by guzzlehttp/guzzle[6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for xiaodi/think-site-pusher ^1.0 -> satisfiable by xiaodi/think-site-pusher[v1.0.0, v1.0.1].
应该是,guzzlehttp/guzzle 版本问题,应该修改一下,(^__^) 嘻嘻……

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.