Download the PHP package tootootltd/azure-text-analytics without Composer

On this page you can find all versions of the php package tootootltd/azure-text-analytics. 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 azure-text-analytics

PHP Azure Text Analytics

Latest Version on Packagist run-tests

A very simple wrapper around version 3.0 of Azure Cognitive Services' Text Analytics API: https://docs.microsoft.com/en-gb/azure/cognitive-services/text-analytics/

Installation

You can install the package via composer:

Publish the config file and put your Azure Cognitive Services endpoint and key in your env file.

Requirements

  1. An Azure Cognitive Services endpoint and key.
  2. PHP 7.4

Usage

This package supports all 5 Text Analytics endpoints and each return the full raw response body.

You can pass your text into the constructor in a few different formats:

String

String and ID

Multiple strings and ID's

Just pass any of these into the constructor.

This package will do a bit of validation on your text before hitting Azure's API, such as;

  1. Checking the length of each document (string of text) and the number of documents per request to ensure they aren't above the Azure API's limits (5,120 characters and 1,000 documents at time of writing respectively). In both these instances an ExceededApiLimit exception will be thrown. More info on these limits can be found on Azure's documentation.
  2. Ensuring that the required fields are present when passing an array (id and text at time of writing). More info on these can be found on Azure's documentation.

Methods:

Sentiment Analysis - View example response

Key Phrases - View example response

Language Detection - View example response

Named Entity Recognition - View example response

Entity Linking - View example response

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

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


All versions of azure-text-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^6.0|^7.0.1
illuminate/support Version ^7.7|^8.0|^9.0
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 tootootltd/azure-text-analytics contains the following files

Loading the files please wait ....