Download the PHP package alsoasked/also-asked-php without Composer

On this page you can find all versions of the php package alsoasked/also-asked-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package also-asked-php

AlsoAsked PHP Client

For more information, please visit https://developers.alsoasked.com.

Installation & Usage

Requirements

PHP 7.4 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

Then run composer install

Examples

Create a client

You'll need to begin by creating a client for the API you wish to use, as well as specify the API key you wish to use.

We do this by first creating an HTTP client respecting the PSR-18 standard.

The \Http\Discovery\Psr18ClientDiscovery class will automatically discover an PSR-18 HTTP client from the installed composer packages, meaning you'll need an HTTP client installed which implements PSR-18 if you don't already.

A common HTTP client which does is Guzzle, we can install this by running composer require guzzlehttp/guzzle:^7.0.

The example below creates a client for the Live API by setting a base URI using the \Http\Client\Common\Plugin\BaseUriPlugin plugin. If you wish to use the Sandbox API, you can change the base URI from https://alsoaskedapi.com/v1 to https://sandbox.alsoaskedapi.com/v1.

You'll need to change the API specified in the \AlsoAsked\Api\Authentication\ApiKeyAuthentication plugin from your-api-key to the API key you've created. If you don't have an API key, follow the authentication guide.

Fetch your account details

Use getAccount to fetch your account details, this calls the GET /v1/account API endpoint.

Perform a search

Use performSearch to perform a search request, this calls the POST /v1/search API endpoint.

Help

If you need more information, see the developer documentation, or get in touch with us at [email protected].


All versions of also-asked-php with dependencies

PHP Build Version
Package Version
Requires jane-php/open-api-runtime Version ^7.5
php-http/client-common Version ^2.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alsoasked/also-asked-php contains the following files

Loading the files please wait ....