PHPackages                             allenjd3/laravel-flywheel - 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. allenjd3/laravel-flywheel

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

allenjd3/laravel-flywheel
=========================

a laravel wrapper for the flywheel package

v0.0.3(8y ago)144MITPHP

Since Aug 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/allenjd3/laravel-flywheel)[ Packagist](https://packagist.org/packages/allenjd3/laravel-flywheel)[ RSS](/packages/allenjd3-laravel-flywheel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Laravel Flywheel
================

[](#laravel-flywheel)

This is a wrapper class for the Jamesmoss/flywheel package.

A laravel facade for flat file documents
----------------------------------------

[](#a-laravel-facade-for-flat-file-documents)

This is a facade that can be used beside the default laravel database structure. Since this doesn't override Laravel's core database functionality you can use both at the same time.

installation
------------

[](#installation)

```
composer require allenjd3\laravel-flywheel

```

Then add to your config/app file under application providers

```
'providers' => [
    ...
        /*
        * Package Service Providers...
        */
        Allenjd3\Flywheel\FlywheelServiceProvider::class,
    ...
]

```

If you want to use the Facade then add this to your aliases array

```
'aliases' => [
    ...
    'Flywheel' => Allenjd3\Flywheel\facades\Flywheel::class,
    ...

]

```

Methods
-------

[](#methods)

### Config

[](#config)

This method is optional if you want to change either the table name or storage path

Example- (optional)

```
$flywheel = Flywheel::config($name, $path);
$flywheel->findAll();

```

### Create

[](#create)

This method creates a new Document and saves it to your path. You can use laravel validation on the request before running this.

```
$id = Flywheel::create($array)

```

### Update / findById

[](#update--findbyid)

This method updates a post. You must find the post by id before updating it.

```
$doc = Flywheel::findById($id);
$doc->param = "new value";
Flywheel::update($doc);

```

### findAll

[](#findall)

This method finds all documents within the given configuration path

```
$docs = Flywheel::findAll();

```

### Delete

[](#delete)

This method deletes a post that matches a given id.

```
Flywheel::delete($id)

```

### Where / get

[](#where--get)

This method returns a query object that can be chained

```
$docs = Flywheel::where('title', '==', 'Shiver Me Timbers')->get();

```

Get ends the queries and executes the result.

### limit, orderBy, andWhere

[](#limit-orderby-andwhere)

```
$docs = Flywheel::limit($count, $offset)->get();
$docs = Flywheel::orderBy('fieldname ASC|DESC')->get();

```

andWhere is a wrapper for additional where queries.

All types of queries, (where, limit, orderby, andWhere) can be chained before calling get. Example-

```
$docs = Flywheel::where('title','==','Most Excellent')
                ->limit(5,2)
                ->orderBy('title ASC')
                ->get();

```

### First

[](#first)

If you only want to return a single document you can run first instead of get

```
$doc = Flywheel::where('title', '==', 'Most Excellent')->first();

```

All returned values can be returned and will return a json string.

```
return $docs;

```

If you want to return a laravel response object with application/json headers then you can run

```
return $docs->toJson();

```

or

```
return $docs->toArray();

```

of course you can always pass the variable into a Blade template

```
return view('template.name', compact('docs'));

```

### Find an error or want a feature?

[](#find-an-error-or-want-a-feature)

Send a pull request!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

3

Last Release

3196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44b6019e7c6e6f731c2eabfc1092af1bc2a55025c80b7718f5707014f2a975c1?d=identicon)[jdallen5](/maintainers/jdallen5)

---

Top Contributors

[![allenjd3](https://avatars.githubusercontent.com/u/8092154?v=4)](https://github.com/allenjd3 "allenjd3 (16 commits)")

### Embed Badge

![Health badge](/badges/allenjd3-laravel-flywheel/health.svg)

```
[![Health](https://phpackages.com/badges/allenjd3-laravel-flywheel/health.svg)](https://phpackages.com/packages/allenjd3-laravel-flywheel)
```

###  Alternatives

[andersondanilo/cnab_php

Projeto para criar arquivos de remessas e processar arquivos de retorno no formato CNAB

334260.6k2](/packages/andersondanilo-cnab-php)[opensrs/osrs-toolkit-php

OpenSRS PHP Toolkit

7668.6k](/packages/opensrs-osrs-toolkit-php)[clausnz/php-helpers

A Collection of useful php helper functions.

388.7k](/packages/clausnz-php-helpers)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

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