PHPackages                             tardigrades/sexy-field-api - 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. tardigrades/sexy-field-api

ActiveLibrary[API Development](/categories/api)

tardigrades/sexy-field-api
==========================

This package adds api functionality to sections.

02.7k4[3 issues](https://github.com/dionsnoeijen/sexy-field-api/issues)[3 PRs](https://github.com/dionsnoeijen/sexy-field-api/pulls)PHP

Since Jun 16Pushed 3y ago2 watchersCompare

[ Source](https://github.com/dionsnoeijen/sexy-field-api)[ Packagist](https://packagist.org/packages/tardigrades/sexy-field-api)[ RSS](/packages/tardigrades-sexy-field-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/444c17158cdcda1300cb316875286ca05409eec62b3c604d5f3201492e33d028/68747470733a2f2f7472617669732d63692e6f72672f64696f6e736e6f65696a656e2f736578792d6669656c642d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dionsnoeijen/sexy-field-api)

SexyFieldApi
============

[](#sexyfieldapi)

This package adds endpoints for sections to SexyField.

GET requests
------------

[](#get-requests)

Sexy-field-api is very powerful when it comes to retrieving the data that you need. Out of the box you can get all the information of your entities, including parent and child entities.

Here are some examples of how you can build your GET requests.

### One recipe

[](#one-recipe)

```
/v1/section/{sectionHandle}/id/{id}
/v1/section/recipe/id/15?fields=id,title,description,recipeType,created,updated

```

### All recipes

[](#all-recipes)

```
/v1/section/{sectionHandle}
/v1/section/recipe?fields=id,title,description,recipeType,created,updated

```

### Recipe filtered by field value

[](#recipe-filtered-by-field-value)

```
/v1/section/fieldvalue/{sectionHandle}/{fieldHandle}
/v1/section/fieldvalue/recipe/recipeType?value=vegan&fields=id,title,description

```

### Recipe by slug

[](#recipe-by-slug)

```
/v1/section/{sectionHandle}/slug/{slug}
/v1/section/recipe/slug/recipe-20180325?fields=title

```

### Recipe with ingredients (show fields of child entities as well)

[](#recipe-with-ingredients-show-fields-of-child-entities-as-well)

The child entity is indicated by the name of the property in the parent entity. So in this case the `recipe` entity has a property called `ingredients`The fields `name`, `amount`, `unit` are properties of the ingredient.

```
/v1/section/recipe/id/3?fields=id,title,description,recipeType,created,updated,ingredients,name,amount,unit

```

POST requests
-------------

[](#post-requests)

For creating a new recipe, you would have to use a POST request to:

```
/v1/section/recipe

```

Content-Type: application/x-www-form-urlencoded

Form data:

```
form[title]: Black bean soup
form[description]: A delicious soup
form[recipeType]: vegan

```

PUT, DELETE and OPTIONS requests
--------------------------------

[](#put-delete-and-options-requests)

See [src/config/routing/api.yml](src/config/routing/api.yml)

Depth control for requests that return an entry
===============================================

[](#depth-control-for-requests-that-return-an-entry)

Nex to ?fields=id,field you can add &amp;depth=3 to control the level of depth in which data is returned.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.8% 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/930dbcfeaefe38b7297bc6c7b0ede7f9d490186a530230f58efb5604931eebba?d=identicon)[dion.snoeijen](/maintainers/dion.snoeijen)

---

Top Contributors

[![dionsnoeijen](https://avatars.githubusercontent.com/u/181423?v=4)](https://github.com/dionsnoeijen "dionsnoeijen (245 commits)")[![pcmoreno](https://avatars.githubusercontent.com/u/18718553?v=4)](https://github.com/pcmoreno "pcmoreno (12 commits)")[![rvounik](https://avatars.githubusercontent.com/u/11267262?v=4)](https://github.com/rvounik "rvounik (8 commits)")[![mbed67](https://avatars.githubusercontent.com/u/7139949?v=4)](https://github.com/mbed67 "mbed67 (7 commits)")[![sjsikkema](https://avatars.githubusercontent.com/u/6177878?v=4)](https://github.com/sjsikkema "sjsikkema (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

### Embed Badge

![Health badge](/badges/tardigrades-sexy-field-api/health.svg)

```
[![Health](https://phpackages.com/badges/tardigrades-sexy-field-api/health.svg)](https://phpackages.com/packages/tardigrades-sexy-field-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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