PHPackages                             smartguycodes/laravel-smart-trading - 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. smartguycodes/laravel-smart-trading

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

smartguycodes/laravel-smart-trading
===================================

A Laravel package for smart trading functionalities.

10PHP

Since Jul 6Pushed 10mo agoCompare

[ Source](https://github.com/SmartGuyCodes/laravel-smart-trading)[ Packagist](https://packagist.org/packages/smartguycodes/laravel-smart-trading)[ RSS](/packages/smartguycodes-laravel-smart-trading/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Smart Trading Package
=============================

[](#laravel-smart-trading-package)

A Laravel package with machine learning capabilities.

Introduction
------------

[](#introduction)

This package provides a complete solution for integrating smart trading capabilities into any laravel application, with machine learning at it's core.

The modular design makes it easy to customize and extend for specific trading needs.

Key Features
------------

[](#key-features)

### 1. Modular Architecture

[](#1-modular-architecture)

- Clean separation of concerns with interfaces
- Easy to extend with new strategies- or exchanges
- Dependency injection for all major components

### 2. Machine Learning integration

[](#2-machine-learning-integration)

- Uses Rubix ML for PHP-based machine learning
- Supports model persistence and training
- Feature extraction from market data

### 3. Exchange Agnostic

[](#3-exchange-agnostic)

- CCXT library for unified exchange API
- Easy to add support for new exchanges
- Sandbox mode for testing

### 4. Risk Management

[](#4-risk-management)

- Built-in risk controls
- Position sizing based on risk level
- Drawdown and exposuremonitoring

### 5. Laravel integration

[](#5-laravel-integration)

- Databse migrations and models
- Artisan commands for management
- Event system for trading notifications

Package Usage Examples
----------------------

[](#package-usage-examples)

### 1. Register the package in your laravel application

[](#1-register-the-package-in-your-laravel-application)

- Add the following to your *config/app.php*

```
    `providers` => [
        // ...
        SmartTrading\Providers\SmartTradingServiceProvider::class,
    ],

    `alias` => [
        // ...
        'SmartTrading' => SmartTrading\Facades\SmartTrading::class,
    ],
```

### 2. Publish configuration

[](#2-publish-configuration)

```
    php artisan vendor:publish --tag=smart-trading-config
```

### 3. Train the ML model

[](#3-train-the-ml-model)

```
    php artisan smart-trading:train --samples=5000
```

### 4. Run a trading bot

[](#4-run-a-trading-bot)

```
    php artisan smart-trading:run my_bot --symbol=BTC/USDT
```

### 5. Programmatic usage

[](#5-programmatic-usage)

```
    use SmartTrading\Facades\SmartTrading;

    // Execute a bot
    $bot = \SmartTrading\Models\Bot::find(1);
    SmartTrading::executeBot($bot);

    // Train model with custom options
    $results = SmartTrading::trainModel([
        'test_size' => 0.3,
        'features' => [
            'rsi', 'volume', 'price_change'
        ]
    ]);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance41

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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/7263e219e9a709c1e52c9d0b3fdc4c15d78e479c17316aaa6a287dd7aeebadd3?d=identicon)[SmartGuyCodes](/maintainers/SmartGuyCodes)

---

Top Contributors

[![SmartGuyCodes](https://avatars.githubusercontent.com/u/74773182?v=4)](https://github.com/SmartGuyCodes "SmartGuyCodes (2 commits)")

### Embed Badge

![Health badge](/badges/smartguycodes-laravel-smart-trading/health.svg)

```
[![Health](https://phpackages.com/badges/smartguycodes-laravel-smart-trading/health.svg)](https://phpackages.com/packages/smartguycodes-laravel-smart-trading)
```

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

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