PHPackages                             sharpapi/laravel-custom-workflow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sharpapi/laravel-custom-workflow

ActiveLibrary[API Development](/categories/api)

sharpapi/laravel-custom-workflow
================================

Laravel wrapper for SharpAPI Custom AI Workflow SDK - build and execute no-code AI API endpoints

v1.0.2(3mo ago)043↓93.8%MITPHPPHP &gt;=8.1

Since Feb 20Pushed 3mo agoCompare

[ Source](https://github.com/sharpapi/laravel-custom-workflow)[ Packagist](https://packagist.org/packages/sharpapi/laravel-custom-workflow)[ Docs](https://sharpapi.com/)[ RSS](/packages/sharpapi-laravel-custom-workflow/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

[![SharpAPI GitHub cover](https://camo.githubusercontent.com/82bb36706c1e71276b3dca4ec9120353bb51c8f22bb62543bf056db5c28da36d/68747470733a2f2f73686172706170692e636f6d2f73686172706170692d6769746875622d6c61726176656c2d62672e6a7067 "SharpAPI Laravel Client")](https://camo.githubusercontent.com/82bb36706c1e71276b3dca4ec9120353bb51c8f22bb62543bf056db5c28da36d/68747470733a2f2f73686172706170692e636f6d2f73686172706170692d6769746875622d6c61726176656c2d62672e6a7067)

SharpAPI Laravel Custom Workflow
================================

[](#sharpapi-laravel-custom-workflow)

🎯 Laravel wrapper for SharpAPI Custom AI Workflows — build and execute no-code AI API endpoints.
------------------------------------------------------------------------------------------------

[](#-laravel-wrapper-for-sharpapi-custom-ai-workflows--build-and-execute-no-code-ai-api-endpoints)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a6e9e735d897e2e58e9cf718b5474cdaccb2bdf3f892a7896e4c1d5d4acd39ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686172706170692f6c61726176656c2d637573746f6d2d776f726b666c6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sharpapi/laravel-custom-workflow)[![Total Downloads](https://camo.githubusercontent.com/901a522223545cc554a1b50b444db9baa716fce93835f4a14773bc79784abdf7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686172706170692f6c61726176656c2d637573746f6d2d776f726b666c6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sharpapi/laravel-custom-workflow)

Check the full documentation on the [Custom AI Workflows](https://sharpapi.com/custom-workflows) page.

---

Quick Links
-----------

[](#quick-links)

ResourceLink**Product Details**[SharpAPI.com](https://sharpapi.com/custom-workflows)**PHP SDK (non-Laravel)**[sharpapi/php-custom-workflow](https://github.com/sharpapi/php-custom-workflow)**SDK Libraries**[GitHub - SharpAPI SDKs](https://github.com/sharpapi)---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel 10, 11, or 12
- A SharpAPI account with an API key

---

Installation
------------

[](#installation)

### Step 1. Install the package via Composer:

[](#step-1-install-the-package-via-composer)

```
composer require sharpapi/laravel-custom-workflow
```

### Step 2. Visit [SharpAPI](https://sharpapi.com/) to get your API key.

[](#step-2-visit-sharpapi-to-get-your-api-key)

### Step 3. Add your API key to `.env`:

[](#step-3-add-your-api-key-to-env)

```
SHARP_API_KEY=your-api-key
```

### Step 4 (Optional). Publish the configuration:

[](#step-4-optional-publish-the-configuration)

```
php artisan vendor:publish --tag=sharpapi-custom-workflow
```

---

What it does
------------

[](#what-it-does)

This package provides a Laravel-native wrapper around [sharpapi/php-custom-workflow](https://github.com/sharpapi/php-custom-workflow). It adds:

- **Service Provider** with deferred loading (singleton only created when first used)
- **Facade** for quick static access
- **Dependency Injection** support
- **Publishable configuration** with auto-discovery

---

Usage (Facade)
--------------

[](#usage-facade)

```
use SharpAPI\LaravelCustomWorkflow\Facades\CustomWorkflow;

// Execute a workflow
$statusUrl = CustomWorkflow::executeWorkflow('my-sentiment-analyzer', [
    'text' => 'Great product!',
    'score' => 4.5,
]);

// Fetch results when ready
$result = CustomWorkflow::fetchResults($statusUrl);

// List your workflows
$workflows = CustomWorkflow::listWorkflows();

// Describe a workflow's schema
$definition = CustomWorkflow::describeWorkflow('my-analyzer');

// Validate + execute in one call
$statusUrl = CustomWorkflow::validateAndExecute('my-analyzer', ['text' => 'hello']);
```

Usage (Dependency Injection)
----------------------------

[](#usage-dependency-injection)

```
use SharpAPI\CustomWorkflow\CustomWorkflowClient;

class AnalyzeController extends Controller
{
    public function analyze(CustomWorkflowClient $client)
    {
        $statusUrl = $client->executeWorkflow('my-sentiment-analyzer', [
            'text' => 'Great product!',
        ]);

        return $client->fetchResults($statusUrl);
    }
}
```

---

Configuration
-------------

[](#configuration)

After publishing, the config file is at `config/sharpapi-custom-workflow.php`:

```
return [
    'api_key' => env('SHARP_API_KEY', env('SHARPAPI_API_KEY')),
    'base_url' => env('SHARPAPI_BASE_URL', 'https://sharpapi.com/api/v1'),
];
```

---

### Do you think our API is missing some obvious functionality?

[](#do-you-think-our-api-is-missing-some-obvious-functionality)

- [Please let us know via GitHub »](https://github.com/sharpapi/laravel-custom-workflow/issues)

---

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

---

Credits
-------

[](#credits)

- [A2Z WEB LTD](https://github.com/a2zwebltd)
- [Dawid Makowski](https://github.com/makowskid)
- Boost your [PHP AI](https://sharpapi.com/) capabilities!

---

License
-------

[](#license)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE.md)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

---

Social Media
------------

[](#social-media)

🚀 For the latest news, tutorials, and case studies, don't forget to follow us on:

- [SharpAPI X (formerly Twitter)](https://x.com/SharpAPI)
- [SharpAPI YouTube](https://www.youtube.com/@SharpAPI)
- [SharpAPI Vimeo](https://vimeo.com/SharpAPI)
- [SharpAPI LinkedIn](https://www.linkedin.com/products/a2z-web-ltd-sharpapicom-automate-with-aipowered-api/)
- [SharpAPI Facebook](https://www.facebook.com/profile.php?id=61554115896974)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance78

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

3

Last Release

115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b500dd3d9b470b50b1ed911cd24a6fdcce51dd97dceb4f97879f727a14495a8?d=identicon)[dawid-makowski](/maintainers/dawid-makowski)

---

Top Contributors

[![makowskid](https://avatars.githubusercontent.com/u/6271194?v=4)](https://github.com/makowskid "makowskid (3 commits)")

---

Tags

phpapilaravelaiworkflowcustomno-codeSharpAPI

### Embed Badge

![Health badge](/badges/sharpapi-laravel-custom-workflow/health.svg)

```
[![Health](https://phpackages.com/badges/sharpapi-laravel-custom-workflow/health.svg)](https://phpackages.com/packages/sharpapi-laravel-custom-workflow)
```

###  Alternatives

[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
