PHPackages                             jordan-price/toolbox - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jordan-price/toolbox

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jordan-price/toolbox
====================

A Laravel package providing various tools including calculator, weather, email, time, and cryptocurrency tools

761PHP

Since Feb 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jordan-price/toolbox)[ Packagist](https://packagist.org/packages/jordan-price/toolbox)[ RSS](/packages/jordan-price-toolbox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AI Agent Toolbox
================

[](#ai-agent-toolbox)

A collection of AI-powered tools designed to work with Laravel applications.

Features
--------

[](#features)

- **Weather**: Get real-time weather data and forecasts
- **Time**: Handle time operations and timezone conversions
- **Crypto**: Fetch cryptocurrency price information
- **Email**: Send emails with ease
- **Eloquent**: Execute database queries using natural language

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

[](#installation)

You can install the package via composer:

```
composer require jordan-price/toolbox
```

Publish the configuration file:

```
php artisan vendor:publish --tag="toolbox-config"
```

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

[](#configuration)

After installation, you can configure the package in your `.env` file:

```
# Weather Tool (optional)
WEATHER_API_KEY=your_api_key
```

Usage
-----

[](#usage)

### Weather

[](#weather)

Get real-time weather data:

```
use JordanPrice\Toolbox\Tools\Weather\WeatherTool;
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;

$weatherTool = new WeatherTool();

$prism = Prism::text()
    ->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
    ->withPrompt('What is the weather in London?')
    ->withTools([$weatherTool])  // Pass the tool instance
    ->toolChoice(ToolChoice::Any);

$response = $prism->generate();
```

### Time

[](#time)

Handle time operations:

```
use JordanPrice\Toolbox\Tools\Time\TimeTool;
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;

$timeTool = new TimeTool();

$prism = Prism::text()
    ->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
    ->withPrompt('What time is it in New York?')
    ->withTools([$timeTool])
    ->toolChoice(ToolChoice::Any);

$response = $prism->generate();
```

### Crypto

[](#crypto)

Get cryptocurrency prices:

```
use JordanPrice\Toolbox\Tools\Crypto\CryptoTool;
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;

$cryptoTool = new CryptoTool();

$prism = Prism::text()
    ->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
    ->withPrompt('What is the current price of Bitcoin?')
    ->withTools([$cryptoTool])
    ->toolChoice(ToolChoice::Any);

$response = $prism->generate();
```

### Email

[](#email)

Send emails:

```
use JordanPrice\Toolbox\Tools\Email\EmailTool;
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;

$emailTool = new EmailTool();

$prism = Prism::text()
    ->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
    ->withPrompt('Send a welcome email to user@example.com')
    ->withTools([$emailTool])
    ->toolChoice(ToolChoice::Any);

$response = $prism->generate();
```

### Eloquent

[](#eloquent)

Execute database queries:

```
use JordanPrice\Toolbox\Tools\Eloquent\EloquentTool;
use EchoLabs\Prism\Prism;
use EchoLabs\Prism\Enums\Provider;
use EchoLabs\Prism\Enums\ToolChoice;

$eloquentTool = new EloquentTool();

$prism = Prism::text()
    ->using(Provider::Anthropic, 'claude-3-5-sonnet-latest')
    ->withPrompt('Find all active users')
    ->withTools([$eloquentTool])
    ->toolChoice(ToolChoice::Any);

$response = $prism->generate();
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jordan Price](https://github.com/jordan-price)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cffb4cfacfa7b3eafbd191d5fa371f4f9e04140084bc5aafb093f5a045f5b97?d=identicon)[jordan-price](/maintainers/jordan-price)

---

Top Contributors

[![jordan-price](https://avatars.githubusercontent.com/u/11284852?v=4)](https://github.com/jordan-price "jordan-price (46 commits)")

### Embed Badge

![Health badge](/badges/jordan-price-toolbox/health.svg)

```
[![Health](https://phpackages.com/badges/jordan-price-toolbox/health.svg)](https://phpackages.com/packages/jordan-price-toolbox)
```

###  Alternatives

[saikiran/geohash

Geohash Algorithm to encode geographic coordinates to a string of letters and digits

44456.6k3](/packages/saikiran-geohash)[echo511/plupload

Plupload component for Nette Framework.

104.4k1](/packages/echo511-plupload)

PHPackages © 2026

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