定制 tallesairan/laravel-valueserp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tallesairan/laravel-valueserp

最新稳定版本:1.2

Composer 安装命令:

composer require tallesairan/laravel-valueserp

包简介

Easily work with the Valueserp API in a Laravel application.

README 文档

README

Laravel package for the Valueserp API.

Getting Started

Run the following command to install this package into your project.

composer require tallesairan/laravel-valueserp

Optional: publish the config files with the following command:

php artisan vendor:publish --provider="Airan\LaravelValueserp\Providers\LaravelValueserpServiceProvider"

Set the environment variables in your .env file like this:

VALUESERP_API_KEY="YOURAPIKEY"

Prerequisites

You will need Composer to install this package and a valid Valueserp API key.

Installing

After installing this package with Composer, create a new Valueserp instance. And set the your Valueserp API key in your env file.

Something like this:

$client = new LaravelValueserp();

And call the desired endpoint

$client->search()->searchFor('bitcoin');

The current implemented endpoints are:

  • GET /search

Documentation for the available parameters can be found here: https://www.valueserp.com/docs/search-api/overview

Running the tests

Copy the phpunit.xml.dist and rename it to phpunit.xml. Set the env variables in the phpunit.xml files.

PLEASE NOTE: running the tests will cost you credits!!!!

  • VALUESERP_API_KEY: A valid Valueserp API key

Please see the phpunit.xml.dist for the template.

Run the tests in the Tests directory with PHPUnit.

Built With

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please help us to develop this package. Every input and/or feedback is really appreciated! Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email us instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-19