Download the PHP package sharpapi/laravel-content-detect-phones without Composer

On this page you can find all versions of the php package sharpapi/laravel-content-detect-phones. 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 laravel-content-detect-phones

SharpAPI GitHub cover

AI Phone Number Detection for Laravel

🚀 Leverage AI API to detect and parse phone numbers in text content.

Latest Version on Packagist Total Downloads

Check the details at SharpAPI's AI Phone Numbers Detector API page.


Requirements


Installation

Follow these steps to install and set up the SharpAPI Laravel Phone Number Detection package.

  1. Install the package via composer:

  2. Register at SharpAPI.com to obtain your API key.

  3. Set the API key in your .env file:

  4. [OPTIONAL] Publish the configuration file:

Key Features


Usage

You can inject the ContentDetectPhonesService class to access phone number detection functionality. For best results, especially with batch processing, use Laravel's queuing system to optimize job dispatch and result polling.

Basic Workflow

  1. Dispatch Job: Send text content to the API using detectPhones, which returns a status URL.
  2. Poll for Results: Use fetchResults($statusUrl) to poll until the job completes or fails.
  3. Process Result: After completion, retrieve the results from the SharpApiJob object returned.

Note: Each job typically takes a few seconds to complete. Once completed successfully, the status will update to success, and you can process the results as JSON, array, or object format.


Controller Example

Here is an example of how to use ContentDetectPhonesService within a Laravel controller:

Handling Guzzle Exceptions

All requests are managed by Guzzle, so it's helpful to be familiar with Guzzle Exceptions.

Example:


Optional Configuration

You can customize the configuration by setting the following environment variables in your .env file:


Phone Number Detection Data Format Example


Support & Feedback

For issues or suggestions, please:


Changelog

Please see CHANGELOG for a detailed list of changes.


Credits


License

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


Follow Us

Stay updated with news, tutorials, and case studies:


All versions of laravel-content-detect-phones with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.0
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
kongulov/interact-with-enum Version ^1.0
sharpapi/php-core Version ^1.0
spatie/url Version ^2.4
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 sharpapi/laravel-content-detect-phones contains the following files

Loading the files please wait ....