league/fractal
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The league/fractal Composer package acts as a presentation and transformation layer for complex data structures that are ready for API output, such as those found in RESTful APIs. It provides a way to present data consistently, which is particularly helpful for public APIs or APIs used by mobile applications. The package also includes features such as systematic type-casting of data, inclusion of relationships for complex data structures, support for standards like HAL and JSON-API, and support for the pagination of data results.
The league/fractal package can be used by installing it via Composer with the command composer require league/fractal
. The minimum supported version of PHP for this package is PHP 7.4. Once the package is installed, you can use it to create a protective shield between your source data and output, aid in systematic type-casting of data, include realtionships for complex data structures, and help with the pagination of data results among other things.
The full documentation for the league/fractal package can be found at http://fractal.thephpleague.com. This documentation is powered by Jekyll and contributes to information about the package's functionalities and uses. For any proposed changes to this documentation, users are encouraged to send a patch via a pull request to the gh-pages branch of the league/fractal GitHub repository.