PHPackages                             thirdsteplabs/apibase - 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. thirdsteplabs/apibase

ActiveLibrary[API Development](/categories/api)

thirdsteplabs/apibase
=====================

Adds CRUD functionality through a RESTful API for Laravel

41641[1 issues](https://github.com/beaulm/apibase/issues)PHP

Since Jan 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/beaulm/apibase)[ Packagist](https://packagist.org/packages/thirdsteplabs/apibase)[ RSS](/packages/thirdsteplabs-apibase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

RESTful CRUD API
================

[](#restful-crud-api)

All calls to the API will start with `/api/v1/`
All responses will be in JSON
If any response other than 200 is given, the JSON will be an array with a `code` and `message` element

Login:
------

[](#login)

- URL: `/api/v1/login`
- Method: `ANY`
- Params: `username`, `password` OR `token`
- Response: `token`
    *\*All subsequent requests will require that token.*

Example: `/api/v1/login?username=3333334444&password=fake`
Ex Return: `{"data":{"token":"12d3ff","user":{"id":2,"username":"3333334444","name":"Beau Lynn-Miller","phone":"3333334444","email":"beaulm@gmail.com","created_at":"2014-10-17 10:16:58","updated_at":"2014-10-17 10:17:00","deleted_at":null,"last_offered":null}},"timestamp":"2014-10-17 10:57:05","hashes":{"gpsConfig":"422962d8","vehicles":"86e45d7c","towingCompanies":"011500b9","states":"738ee935"}}`

Get All:
--------

[](#get-all)

- URL: `/api/v1/{object}`
- Method: `GET`
- Params: `token`
- Response: array of object data

Example: `/api/v1/user?token=12d3ff`
Ex Return: `[{"id":1,"name":"Fakey McFakerson","email":"fake@fake.com"},{"id":2,"name":"Foo McBarenson","email":"foo@bar.com"}]`

Get Specific:
-------------

[](#get-specific)

- URL: `/api/v1/{object}/{id}`
- Method: `GET`
- Params: `token`
- Response: object data

Example: `/api/v1/user/2?token=12d3ff`
Ex Return: `{"id":2,"name":"Foo McBarenson","email":"foo@bar.com"}`

Create Object:
--------------

[](#create-object)

- URL: `/api/v1/{object}`
- Method: `POST`
- Params: `token`, fillabe parameters defined in model
- Response: object data

Example: `/api/v1/user?name=Testey&password=test&email=test@test.com&phone=5551234123&token=12d3ff`
Ex Return: `{"id":3,"name":"Testey","email":"test@test.com","phone":"5551234123"}`

Update Object:
--------------

[](#update-object)

- URL: `/api/v1/{object}/{id}`
- Method: `PUT`
- Params: `token`, fillabe parameters defined in model
- Response: object data

Example: `/api/v1/user/2?phone=5557777777&token=12d3ff`
Ex Return: `{"id":2,"name":"Foo McBarenson","email":"foo@bar.com","phone":"5557777777"}`

Delete Object:
--------------

[](#delete-object)

- URL: /api/v1/{object}/{id}
- Method: `DELETE`
- Params: `token`
- Response: array of remaining objects

Example: `/api/v1/user/1`
Ex Return: `[{"id":2,"name":"Foo McBarenson","email":"foo@bar.com","phone":"5557777777"},{"id":3,"name":"Testey","email":"test@test.com","phone":"5551234123"}]`

Logout:
-------

[](#logout)

- URL: `/api/v1/logout`
- Method: `ANY`
- Params: `token`
- Response: JSON with message

Example: `/api/v1/logout?token=12d3ff`
Ex Return: `{"message":"Logout successful"}`

Error:
------

[](#error)

Making a call without a token will result in an error:

Example: `/api/v1/user`
Ex Return: `{"code":401,"message":"You do not have access to view this web page"}`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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/53374c69e2d407a22a3ee2070aa0672726f4f03caaf22fb392e4f1f22406ac85?d=identicon)[beaulm](/maintainers/beaulm)

---

Top Contributors

[![beaulm](https://avatars.githubusercontent.com/u/1004904?v=4)](https://github.com/beaulm "beaulm (64 commits)")[![alarner](https://avatars.githubusercontent.com/u/835542?v=4)](https://github.com/alarner "alarner (4 commits)")

### Embed Badge

![Health badge](/badges/thirdsteplabs-apibase/health.svg)

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

###  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.9M272](/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)
