Download the PHP package hirmeos/entity-fishing-php-wrapper without Composer

On this page you can find all versions of the php package hirmeos/entity-fishing-php-wrapper. 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 entity-fishing-php-wrapper

PHP Client for NERD entity fishing API

This is a PHP library/wrapper of the NERD API. High level method calls that parse the JSON API response to PHP classes for ease of use.

Installation

Method 1

Just copy the following files in your project:

  1. Folder: Domain
  2. Folder: WebResponse
  3. File: EFWebServiceManager.php

Method 2

Method 2 relies on Packagist (https://packagist.org/)

{
    "require": {

        "hirmeos/entity-fishing-php-wrapper" : "*"
    }
}

See the composer documentation here: https://packagist.org/ and here: https://getcomposer.org/doc/01-basic-usage.md#package-versions

Usage

Include: EFWebServiceManager.php in your file

require_once('EFWebServiceManager.php');

Disambiguate Text

EFWebServiceManager::disambiguateText(String searchText, String lang);

Returns object of type: EFDisambiguateTextWebResponse

Disambiguate Short Text

EFWebServiceManager::disambiguateShortText(String searchText, String lang);

Returns object of type: EFDisambiguateShortTextWebResponse

Disambiguate Term Vector

EFWebServiceManager::disambiguateTermVector(Array searchText, String lang);

Returns object of type: EFDisambiguateTermWebResponse

Disambiguate PDF

EFWebServiceManager::disambiguatePDF(String pdf_file_path, String lang);

Returns object of type: EFDisambiguatePDFWebResponse

Concept

EFWebServiceManager::concept(int concept_id, String lang);

Returns object of type: EFConceptWebResponse

Term

EFWebServiceManager::term(int term_id, String lang);

Returns object of type: EFTermWebResponse

Language

EFWebServiceManager::language(String text);

Returns object of type: EFLanguageWebResponse

Segmentation

EFWebServiceManager::segmentation(String text);

Returns object of type: EFSegmentationWebResponse

Responses

All response objects have the following three public variables:

public $has_error;

public $status_code;

public $error_msg;

Use the variables to check for API request errors before proceeding to the actual response data.


All versions of entity-fishing-php-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.3 || ^7.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 hirmeos/entity-fishing-php-wrapper contains the following files

Loading the files please wait ...