PHPackages                             mralaminahamed/fluent-cart-stubs - 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. mralaminahamed/fluent-cart-stubs

ActiveLibrary

mralaminahamed/fluent-cart-stubs
================================

Fluent Cart function and class declaration stubs for static analysis.

v1.6.0.2(today)04↑2900%1MITShellPHP &gt;=7.4CI failing

Since Jul 31Pushed todayCompare

[ Source](https://github.com/mralaminahamed/phpstan-fluent-cart-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/fluent-cart-stubs)[ Docs](https://github.com/mralaminahamed/phpstan-fluent-cart-stubs)[ RSS](/packages/mralaminahamed-fluent-cart-stubs/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (4)Used By (1)

Fluent Cart Stubs
=================

[](#fluent-cart-stubs)

[![Latest Version](https://camo.githubusercontent.com/c801fa05078b6656d8da78f0595428d4f0ed9b382b16fa1fd5cc9112e198ff0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f666c75656e742d636172742d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/fluent-cart-stubs)[![Downloads](https://camo.githubusercontent.com/90b0dbcfb6ac21f95280dc877113a8cf11e885f805746984d71aa31afd2e43ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f666c75656e742d636172742d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/fluent-cart-stubs/stats)[![License](https://camo.githubusercontent.com/ebb1b09243ab3a8268887d5cf62e8c4b1d273cce1b2cec260fc01b6398bd279b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f666c75656e742d636172742d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/a27af21ec679d1679a1cc016253f042a327e072caa59da2f8a1bb66d0f331ea6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f666c75656e742d636172742d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)

PHP stub declarations for the [Fluent Cart](https://wordpress.org/plugins/fluent-cart/) plugin, for IDE completion and static analysis. Generated with [php-stubs/generator](https://github.com/php-stubs/generator) directly from the plugin source.

Generated from **Fluent Cart 1.6.0** — 715 classes · 11 interfaces · 21 traits · 15 functions · 8 constants.

🚀 Features
----------

[](#-features)

- Complete class, interface, trait and function declarations
- Constants in a separate file, so PHPStan can scan them rather than analyse them
- IDE autocompletion for a plugin that is not a Composer dependency
- Reproducible: the source is downloaded from WordPress.org, never vendored

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 7.4
- Composer

📦 Installation
--------------

[](#-installation)

```
composer require --dev mralaminahamed/fluent-cart-stubs
```

Or download the stub files directly:

- [fluent-cart-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-fluent-cart-stubs/main/fluent-cart-stubs.stub)
- [fluent-cart-constants-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-fluent-cart-stubs/main/fluent-cart-constants-stubs.stub)

🔧 Configuration
---------------

[](#-configuration)

Add both files to PHPStan. `scanFiles` rather than `bootstrapFiles`: the stubs declare symbols for analysis, they are not meant to be executed.

```
parameters:
    scanFiles:
        - vendor/mralaminahamed/fluent-cart-stubs/fluent-cart-stubs.stub
        - vendor/mralaminahamed/fluent-cart-stubs/fluent-cart-constants-stubs.stub
```

For IDE completion, point your IDE at the same files — in PhpStorm, mark them as an *Include Path* rather than a source root, so the empty method bodies never shadow the real plugin.

🔍 Quick usage example
---------------------

[](#-quick-usage-example)

```
