Download the PHP package sean-luis/ibm-php-sdk without Composer

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

IBM Cloud SDK for PHP

The IBM Cloud SDK for PHP is a library that provides an easy way to interact with IBM Cloud services from applications written in PHP. The SDK currently supports IBM NLU and IBM COS.

Requirements

Requisito Versión requerida Enlace de descarga
PHP ^8.1 https://www.php.net/downloads
GuzzleHTTP/Guzzle ^7.5 https://github.com/guzzle/guzzle
Symfony/Yaml ^6.2 https://github.com/symfony/yaml
Symfony/Dotenv ^6.2 https://github.com/symfony/dotenv
ext-yaml * N/A
ext-fileinfo * N/A
ext-curl * N/A
ext-simplexml * N/A

It is important to ensure that the required PHP extensions are enabled in the server environment. The SDK also requires access to the IBM Cloud services that it is interacting with, such as IBM Cloud Object Storage and IBM Watson Natural Language Understanding.

Note that the composer package manager will automatically install all the required dependencies and their dependencies during installation of the SDK.

Installation

To install the SDK, you can use Composer. If you don't already have Composer installed on your system, follow the instructions at https://getcomposer.org to install it.

Run the following command in your terminal to install the SDK:

Setting

Before using the SDK, you must set up your IBM Cloud credentials. You can do it by creating a YAML file or ENV file in the root directory of your project with the following keys

Or you can use ENV:

Replace the variables you think you'll use in each case you see fit with your own IBM Cloud credentials.

Implementation

Natural Language Understanding

The NaturalLanguageUnderstanding class provides an easy way to interact with IBM NLU.

Creates a new instance of the Natural Language Understanding class.

Parameters:

Analyze

Parses the supplied text using IBM NLU and returns the results.

Parameters:

Response: An array containing the results of the analysis.

AnalysisFeature

Represents the features that can be analyzed with Natural Language Understanding.

Cloud Object Storage

The CloudObjectStorage class provides an easy way to interact with IBM COS.

Creates a new instance of the CloudObjectStorage class.

Parameters:

PutObject

Upload a file to IBM COS.

Parameters:

Response Response true or false at the end of the request.

GetObject

Downloads a file from IBM COS.

Parameters:

Response: The content of the downloaded file.

CopyObject

Copies an object to another bucket, optionally renaming the object.

Parameters:

Response: True if the operation completed successfully, false otherwise.

DeleteObject

Delete a object from the specified bucket.

Parameters:

Response: True if the operation completed successfully, false otherwise.

ListObjects

Lists the objects in the specified bucket.

Parameters:

Response: Response a list of objects belonging to the provided bucket.

CreateBucket

Creates a new bucket in the specified region.

Parameters:

Response: True if the operation completed successfully, false otherwise.

DeleteBucket

Elimina un bucket existente.

Parameters:

Response: True if the operation completed successfully, false otherwise.

Text To Speech

The TextToSpeech class provides an easy way to interact with IBM TTS.

Creates a new instance of the Text To Speech class.

Parameters:

Synthesize

Synthesize audio from text using the Text to Speech service.

Parameters:

Response: The synthesized audio in the requested format.

Speech To Text

The SpeechToText class provides an easy way to interact with IBM STT.

Creates a new instance of the Speech To Text class.

Parameters:

Recognize

Recognize is a method that sends a POST request to the IBM Cloud Speech to Text API to transcribe an audio file.

Parameters:

Response: The transcript text in the requested format.

Running Tests

1. To run the tests for the IBM Cloud services implemented in this project, follow the steps below:

2. Run the tests for all services using the following command:

3. Replace ServiceName with the name of the service you want to test, i.e. COS, NLU, TTS, or STT.

This will run the tests for the IBM Cloud Object Storage service.

4. If all tests pass, you should see a message similar to the following:

If any tests fail, you will see an error message indicating the reason for the failure.

Note: Some tests may fail if you do not have the necessary credentials or permissions to access certain resources on your IBM Cloud account.

Frequent questions

How can I get IBM Cloud credentials?

You can get IBM Cloud credentials from the IBM Cloud control panel. See the IBM Cloud documentation for more information.

How can I fix authentication errors?

Make sure that the IBM Cloud credentials are correct and that they are set up correctly in the YAML or ENV file. You can also try regenerating the credentials and reconfiguring them.

How can I report bugs or request new features?

You can report bugs or request new features in the SDK GitHub repository. See the "Contribute" section in the SDK README.md file for more information.

Contribute

If you want to contribute to the development of the SDK, you can do so in several ways:

If you find bugs or problems, you can report them on the SDK GitHub repository. If you want to request new features or enhancements, you can also do so in the SDK GitHub repository. If you want to fix bugs or add new features, you can fork the repository and submit a pull request with your changes. Before committing any changes, make sure that you have created proper unit and integration tests for your changes and that the documentation has been updated accordingly.

Conclusion

The IBM Cloud SDK for PHP is a useful tool for interacting with IBM Cloud services from applications written in PHP. With the proper installation and configuration instructions, end users can use the SDK to interact with IBM NLU and IBM COS. Clear and complete documentation, along with use cases and integration tests, will help end users to use the SDK correctly and reduce the number of support questions. Additionally, the ability to contribute to the development of the SDK makes it a useful and flexible tool for any project that uses the IBM Cloud.

Upcoming integrations

Service Description Status
IBM Cloud Object Storage (COS) Allows users to interact with COS to store and retrieve files. :tada: Done
IBM Watson Natural Language Understanding (NLU) Allows users to analyze and understand text with NLU. :tada: Done
IBM Watson Assistant Add integration with IBM Watson Assistant for creating chatbots and virtual assistants :stopwatch: In Progress
IBM Watson Language Translator Add integration with IBM Watson Language Translator for text translation capabilities :stopwatch: In Progress
IBM Watson Speech to Text (STT) Add integration with IBM Watson Speech to Text for transcribing spoken language into text :tada: Done
IBM Watson Text to Speech (TTS) Add integration with IBM Watson Text to Speech for converting written text into spoken language :tada: Done
IBM Watson Visual Recognition Add integration with IBM Watson Visual Recognition for image recognition and analysis :stopwatch: In Progress
IBM Cloud Database Add integration with IBM Cloud Databases for storing and retrieving data :stopwatch: In Progress
IBM Cloud Functions Add integration with IBM Cloud Functions for serverless computing :stopwatch: In Progress

All versions of ibm-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.5
symfony/yaml Version ^6.2
symfony/dotenv Version ^6.2
ext-yaml Version *
ext-fileinfo Version *
ext-curl Version *
ext-simplexml Version *
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 sean-luis/ibm-php-sdk contains the following files

Loading the files please wait ....