APPNETOS is under active development This website and its documentation are being prepared for public launch. Content and features may change.
Select Theme
Loading

Post

HTTP input injection and typed variants.

Purpose & processing

Reads values from the APPNETOS POST controller.

Parameters

Parameter Type Default Behavior
key string Required Key used to resolve the value.

Example

#[Post('page')]
protected mixed $page = null;

#[PostInt('page')]
protected int $pageNumber = 0;

Behavior and considerations

  • Available attributes: Post, PostString, PostInt, PostFloat, PostBool, PostArray.
  • An absent untyped value resolves to null.
  • Absent typed values use String: empty string; Int: 0; Float: 0.0; Bool: false; Array: empty array.
  • Type conversion and validation are implemented by the corresponding input controllers; array variants accept arrays and can wrap scalar values.

Source

shared/src/Core/Annotation/Post*.php

Next Steps

Previous

Get

Explore Get

Next

Request

Explore Request