bildvitta/iss-produto

This is my package IssProduto

Fund package maintenance!
bildvitta


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is the Produto do Produto module sdk.

Support us

  • Real Estate Development (paginate, find).

Installation

You can install the package via composer:

composer require bildvitta/iss-produto

You can publish the config file with:

php artisan vendor:publish --provider="Bildvitta\IssProduto\IssProdutoServiceProvider" --tag="iss-produto-config"

This is the contents of the published config file:

return [

    'base_uri' => env('MS_PRODUTO_BASE_URI'),

    'prefix' => env('MS_PRODUTO_API_PREFIX')
];

Config

In your .env file, associate the following variables.

# API base URL.
MS_PRODUTO_BASE_URI="http://127.0.0.1:8001"

# API prefix if it exists.
MS_PRODUTO_API_PREFIX="/api"

Usage

$issProduto = new \Bildvitta\IssProduto\IssProduto('jwt-hub');

$issProduto->realStateDevelopment()->search(['name' => 'Example']);
print_r($issProduto->realStateDevelopment()->find('uuid'));

This is result:

{
    "result": {
        "uuid": "77b83e9e-5e20-4dbc-8d27-5bf3ea960888",
        "status": "ready_for_commercialization",
        "address": "R. Ohana Verdugo",
        "city": "Théo do Leste",
        "name": "Example",
        "...": "..."
    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.