PHPackages                             dvdx1995/cs-float-php-bundle - 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. dvdx1995/cs-float-php-bundle

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

dvdx1995/cs-float-php-bundle
============================

PHP Bundle for CSFloat market

v1.0.8(4mo ago)04MITPHPPHP &gt;=7.1CI passing

Since Feb 14Pushed 4mo agoCompare

[ Source](https://github.com/seaborg1995/cs-float-php-bundle)[ Packagist](https://packagist.org/packages/dvdx1995/cs-float-php-bundle)[ RSS](/packages/dvdx1995-cs-float-php-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

CS Float PHP Bundle
===================

[](#cs-float-php-bundle)

**CS Float PHP Bundle** is a PHP SDK for interacting with the **CSFloat Market API**, making it easier to integrate CSFloat services in your PHP projects.

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

[](#requirements)

- PHP &gt;= 7.1
- Composer
- Guzzle 7.x

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

[](#installation)

Install via Composer:

```
composer require dvdx1995/cs-float-php-bundle
```

Services
--------

[](#services)

The bundle provides three main service classes:

### 1. CsFloatApiService (Base Service)

[](#1-csfloatapiservice-base-service)

Base service for making API calls. All other services extend this class.

```
use CsFloatPhpBundle\Service\CsFloatApiService;

$api = new CsFloatApiService('YOUR_API_KEY');
```

**Methods:**

MethodDescriptionParametersReturns`call(AbstractRequest $request)`Execute a custom request`AbstractRequest``array``getMe()`Get current authenticated user info-`array`---

### 2. CsFloatListingApiService

[](#2-csfloatlistingapiservice)

Extended service for managing listings, inventory, and item data.

```
use CsFloatPhpBundle\Service\CsFloatListingApiService;

$api = new CsFloatListingApiService('YOUR_API_KEY');
```

**Methods:**

MethodDescriptionParametersReturns`getInventory()`Get authenticated user's inventory-`array``createBuyNowListing(int $assetId, int $price)`List item for sale as Buy Now`int`, `int``array``createAuctionListing(int $assetId, int $reservedPrice, int $durationDays)`List item for sale as Auction`int`, `int`, `int``array``getUserListings(int $steam64Id, int $limit)`Get user's stall/listings`int`, `int``array``deleteListing(int $listingId)`Remove a listing`int``array``setListingPrivate(int $listingId, bool $status)`Hide/unhide a listing`int`, `bool``array``setListingDescription(int $listingId, string $description)`Update listing description (max 32 chars)`int`, `string``array``setListingPrice(int $listingId, int $price)`Update listing price`int`, `int``array``setAwayMode(bool $status)`Enable/disable away mode`bool``array``setStallPublic(bool $status)`Enable/disable stall privacy mode`bool``array``getListings(int $limit, ...)`Search global listingsSee below`array``getSimilarListings(int $listingId)`Get similar listings`int``array``getListingBuyOrders(int $limit, int $listingId)`Get buy orders for a listing`int`, `int``array``getItemLatestSales(string $itemFullName, int $paintIndex)`Get latest sales for an item`string`, `int``array``getItemSalesGraph(string $itemFullName, int $paintIndex)`Get sales graph for an item`string`, `int``array`**getListings() Parameters:**

ParameterTypeDescription`$limit``int`Number of results (required)`$paintSeed``?int`Paint seed filter`$category``?int`Category filter`$rarity``?int`Rarity filter`$sortBy``?string`Sort field`$minFloat``?float`Minimum float value`$maxFloat``?float`Maximum float value`$collection``?string`Collection name`$minPrice``?int`Minimum price (in cents)`$maxPrice``?int`Maximum price (in cents)`$type``?string`Item type`$defIndex``?int`Definition index`$paintIndex``?int`Paint index`$minRefQty``?int`Minimum ref quantity`$maxRefQty``?int`Maximum ref quantity`$stickerOptions``?string`Sticker options`$stickers``?array`Array of stickers`$keychains``?array`Array of keychains---

### 3. CsFloatTradesApiService

[](#3-csfloattradesapiservice)

Extended service for managing trades.

```
use CsFloatPhpBundle\Service\CsFloatTradesApiService;

$api = new CsFloatTradesApiService('YOUR_API_KEY');
```

**Methods:**

MethodDescriptionParametersReturns`getVerifiedSellerTrades(int $page, int $limit = 30)`Get verified seller trades`int`, `int``array``getPendingBuyerTrades(int $page, int $limit = 30)`Get pending buyer trades`int`, `int``array``getTrades(string $role, array $states, int $page, int $limit)`Get trades with custom filters`string`, `array`, `int`, `int``array``bulkAcceptTrades(array $tradeIds)`Accept multiple trades at once`array``array`**getTrades() Parameters:**

ParameterTypeDescription`$role``string`'buyer' or 'seller'`$states``array`Array of states: 'failed', 'cancelled', 'verified', 'pending'`$page``int`Page number`$limit``int`Results per page---

Custom Requests
---------------

[](#custom-requests)

You can create your own custom requests by extending `AbstractRequest`:

```
use CsFloatPhpBundle\Request\AbstractRequest;
use CsFloatPhpBundle\Helper\RequestMethodConst;

class YourCustomRequest extends AbstractRequest
{
    private $param;

    public function __construct($param)
    {
        $this->param = $param;
    }

    public function getMethod(): string
    {
        return RequestMethodConst::POST; // or GET, DELETE, PATCH
    }

    public function getUrl(): string
    {
        return 'endpoint/path';
    }

    public function getParams(): array
    {
        return [
            'query' => ['key' => 'value'],       // for GET requests
            // or
            'form_params' => ['key' => 'value'], // for POST/PATCH requests
            // or
            'body' => json_encode(['key' => 'value']),
        ];
    }
}
```

Then use it with any service:

```
$api = new \CsFloatPhpBundle\Service\CsFloatApiService('YOUR_API_KEY');
$response = $api->call(new YourCustomRequest('value'));
```

---

Available Request Classes
-------------------------

[](#available-request-classes)

The bundle includes the following request classes that you can use directly or extend:

### User Requests

[](#user-requests)

- `CsFloatPhpBundle\Request\User\GetMeRequest` - Get authenticated user info
- `CsFloatPhpBundle\Request\User\PatchUserRequest` - Update user settings (away mode, stall public)
- `CsFloatPhpBundle\Request\User\GetUserStallRequest` - Get user's stall/listings

### Inventory Requests

[](#inventory-requests)

- `CsFloatPhpBundle\Request\Inventory\GetInventoryRequest` - Get user's inventory

### Listings Requests

[](#listings-requests)

- `CsFloatPhpBundle\Request\Listings\GetListingsRequest` - Search global listings
- `CsFloatPhpBundle\Request\Listings\GetSimilarListingsRequest` - Get similar listings
- `CsFloatPhpBundle\Request\Listings\PostUserListingRequest` - Create listing (buy now or auction)
- `CsFloatPhpBundle\Request\Listings\PatchUserListingRequest` - Update listing (price, description, private)
- `CsFloatPhpBundle\Request\Listings\DeleteUserListingRequest` - Delete listing

### Items Requests

[](#items-requests)

- `CsFloatPhpBundle\Request\Items\GetItemLatestSalesRequest` - Get latest sales for item
- `CsFloatPhpBundle\Request\Items\GetItemSalesGraphRequest` - Get sales graph for item

### Orders Requests

[](#orders-requests)

- `CsFloatPhpBundle\Request\Orders\GetBuyOrdersRequest` - Get buy orders for listing

### Trades Requests

[](#trades-requests)

- `CsFloatPhpBundle\Request\Trades\GetTradesRequest` - Get trades
- `CsFloatPhpBundle\Request\Trades\BulkAcceptTradesRequest` - Accept multiple trades

---

Examples
--------

[](#examples)

### Get User Inventory

[](#get-user-inventory)

```
use CsFloatPhpBundle\Service\CsFloatListingApiService;

$api = new CsFloatListingApiService('YOUR_API_KEY');
$inventory = $api->getInventory();
```

### Search Listings

[](#search-listings)

```
use CsFloatPhpBundle\Service\CsFloatListingApiService;

$api = new CsFloatListingApiService('YOUR_API_KEY');
$listings = $api->getListings(
    limit: 10,
    minPrice: 100,
    maxPrice: 500,
    category: 2
);
```

### Create Buy Now Listing

[](#create-buy-now-listing)

```
use CsFloatPhpBundle\Service\CsFloatListingApiService;

$api = new \CsFloatPhpBundle\Service\CsFloatApiService('YOUR_API_KEY');
$result = $api->createBuyNowListing(assetId: 12345, price: 150); // $1.50
```

### Accept Trades

[](#accept-trades)

```
use CsFloatPhpBundle\Service\CsFloatTradesApiService;

$api = new CsFloatTradesApiService('YOUR_API_KEY');
$result = $api->bulkAcceptTrades(['947100664322983730', '123456789']);
```

### Get Item Sales History

[](#get-item-sales-history)

```
use CsFloatPhpBundle\Service\CsFloatListingApiService;

$api = new CsFloatListingApiService('YOUR_API_KEY');
$sales = $api->getItemLatestSales('AK-47 | Redline (Field-Tested)', 632);
```

License
-------

[](#license)

MIT

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance77

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db8b839768770a7c300b9d1af0de41816546cf4fc3ceba616bd64c6c90a35d01?d=identicon)[seaborg1995](/maintainers/seaborg1995)

---

Top Contributors

[![seaborg1995](https://avatars.githubusercontent.com/u/69133105?v=4)](https://github.com/seaborg1995 "seaborg1995 (19 commits)")

### Embed Badge

![Health badge](/badges/dvdx1995-cs-float-php-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dvdx1995-cs-float-php-bundle/health.svg)](https://phpackages.com/packages/dvdx1995-cs-float-php-bundle)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k42](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k121](/packages/oat-sa-tao-core)

PHPackages © 2026

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