Download the PHP package gdnacho/poob without Composer

On this page you can find all versions of the php package gdnacho/poob. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package poob

Poob

Poob – Input/Output DTO generator, validator, and OpenAPI docs generator.

Quickly create Input DTOs, Output DTOs, and Field definitions using Symfony Validator. Input DTOs are automatically validated through a value resolver, as well as OpenAPI docs generation.

The goal is to provide a less opinionated micro-framework than API Platform, and a bundle like Nelmio/ApiDocBundle without the annotation boilerplate.


Features


Installation

Add Poob to your Symfony project via Composer:

Then initialize (This will create the directories /src/Api and /config/packages/poob_api.yaml):

Usage

Controller

Optionally, you can also map requests directly to an unvalidated array if the parameter is named $requestData:

Input DTO

Field

Output DTO

Output DTO Helpers

All Output DTOs should extend OutputDto. This provides two convenient static methods:

API Docs generation

You may generate rudimentary OpenAPI documentation for your API with the poob:make:docs command. Poob will scan all your routes (With a prefix of /api by default) and Input DTOs schema and validation rules to generate it. $ref is not yet supported.

You can configure your API docs in config/packages/poob_api.yaml:

Description & Summary attributes

You may use these attributes atop controllers for the API docs generation:

You can also use description for properties in InputDTOs:

Full CRUD controller example

Contributing

Poob is just a small package with not a lot of thought put into it, mostly for me to use in my own projects. Regardless, contributions as small as just submitting issues are welcome.

"u gota get a groov!!!"


All versions of poob with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/http-kernel Version ^8.0
symfony/routing Version ^8.0
symfony/console Version ^8.0
symfony/validator Version ^8.0
symfony/filesystem Version ^8.0
symfony/dependency-injection Version ^8.0
symfony/config Version ^8.0
symfony/yaml Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gdnacho/poob contains the following files

Loading the files please wait ...