PHPackages                             jeffbeltran/bob - 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. [API Development](/categories/api)
4. /
5. jeffbeltran/bob

ActiveLibrary[API Development](/categories/api)

jeffbeltran/bob
===============

This is a Laravel package that will allow you to create query scopes that can be applied to an API's Endpoint dynamically via Query Strings.

037PHP

Since Jul 17Pushed 5y agoCompare

[ Source](https://github.com/JeffBeltran/bob)[ Packagist](https://packagist.org/packages/jeffbeltran/bob)[ RSS](/packages/jeffbeltran-bob/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Bob - An API Query String Builder
=================================

[](#bob---an-api-query-string-builder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2519f552a5eab0d25d781c49d08c72ab7f8167de0db0d39823af7376d24b877f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65666662656c7472616e2f626f622e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jeffbeltran/bob)[![GitHub Tests Action Status](https://camo.githubusercontent.com/96dd10a2165b5d76d355fdf161f1b380c06108e9b987ffc59fc10acc16b09125/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a65666662656c7472616e2f626f622f54657374733f7374796c653d666f722d7468652d6261646765)](https://github.com/jeffbeltran/bob/actions?query=workflow%3Atests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ed87e9c4b4444825f5ccd626a30b6a6b8a3e5f6053aaa9242df4def5e2474a8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65666662656c7472616e2f626f622e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jeffbeltran/bob)

This is a Laravel package that will allow you to create query scopes that can be applied to an API's Endpoint dynamically via Query Strings.

In short, you can apply filters to your API endpoints like so

```
/posts?include=comments&author=2&sort=created_at,asc

```

This would return all posts for the author of ID 2, all comment relationships and sorted by created\_at date (note: some assembly required)

Installation - WIP
------------------

[](#installation---wip)

You can install the package via composer:

```
composer require jeffbeltran/bob
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Jeffbeltran\Bob\BobServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Jeffbeltran\Bob\BobServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
];
```

Usage - WIP
-----------

[](#usage---wip)

```
$bob = new Jeffbeltran\Bob();
echo $bob->echoPhrase('Hello, Jeffbeltran!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Jeff Beltran](https://github.com/JeffBeltran)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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/f10f27e1d4e88e90646bbdc0bf83c6b867b5918e420b1ba5142bbc9a91582da9?d=identicon)[JeffBeltran](/maintainers/JeffBeltran)

---

Top Contributors

[![JeffBeltran](https://avatars.githubusercontent.com/u/22965241?v=4)](https://github.com/JeffBeltran "JeffBeltran (5 commits)")

### Embed Badge

![Health badge](/badges/jeffbeltran-bob/health.svg)

```
[![Health](https://phpackages.com/badges/jeffbeltran-bob/health.svg)](https://phpackages.com/packages/jeffbeltran-bob)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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