Download the PHP package anakin/sdk without Composer

On this page you can find all versions of the php package anakin/sdk. 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 sdk

anakin-php

Official PHP SDK for Anakin — web scraping, crawling, search, and Wire actions.

Status: alpha (v0.1.x). Public API may change between minor versions until v1.0.

Install

Requires PHP 8.1+ with ext-curl and ext-json.

Quickstart

The SDK polls long-running jobs internally — you get the final result back from a single synchronous method call. No job IDs to manage, no polling loops to write.

Method overview

Method Endpoint Sync?
$client->scrape($url, $opts = []) POST /url-scraper → poll async
$client->map($url, $opts = []) POST /map → poll async
$client->crawl($url, $opts = []) POST /crawl → poll async
$client->search($query, $opts = []) POST /search sync
$client->agenticSearch($prompt, $opts = []) POST /agentic-search → poll async
$client->wire($actionId, $params = []) POST /holocron/task → poll async
$client->sessions()->list/create/save/update/delete /browser-sessions/* various
Anakin\Countries::supported() offline (bundled) sync

Configuration

You can also inject a pre-built Guzzle / PSR-18 client via 'http_client' => $myClient.

Errors

Every error thrown by the SDK is a typed subclass of Anakin\Exception\AnakinException:

The exception hierarchy:

Class When
AuthenticationException 401 — invalid or missing API key
InsufficientCreditsException 402 — out of credits ($balance, $required)
InvalidRequestException 400 — validation failure
RateLimitException 429 — after retry budget exhausted ($retryAfter)
JobFailedException Polled job came back with status="failed" ($reason)
JobTimeoutException Polling budget exhausted before terminal status
ServerException 5xx — after retries exhausted
NetworkException DNS / connect / read-timeout
AnakinException Base class; everything above extends it

Develop

Related packages

License

Apache 2.0


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^7.5
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 anakin/sdk contains the following files

Loading the files please wait ...