macropay-solutions/laravel-crud-wizard-client-free

Request builder for calling projects that implement macropay-solutions/laravel-crud-wizard-free

Package info

github.com/macropay-solutions/laravel-crud-wizard-client-free

pkg:composer/macropay-solutions/laravel-crud-wizard-client-free

Statistics

Installs: 5

Dependents: 0

Suggesters: 5

Stars: 3

Open Issues: 0

1.0.7 2025-10-09 11:59 UTC

Requires

Requires (Dev)

Provides

None

Conflicts

None

Replaces

None

MIT b4297e797b5d3210e4d25b549c8f3fb572f44ae6

clientwizardcrudbuilderfreeinitiator

This package is not auto-updated.

Last update: 2026-06-05 07:47:00 UTC


README

👁 1_9gPPofZEi8eKSFMrEMIF5w7

👁 Total Downloads
👁 Latest Stable Version
👁 License

This is a stripped down version of maravel-rest-wizard-client

and can be used for calling laravel-crud-wizard-free

Install

composer require macropay-solutions/laravel-crud-wizard-client-free

Start using it

 $crud = new \MacroPaySolutions\LaravelCrudWizardClient\RequestBuilder(\env('API_BEARER'), \env('APP_URL'));

 try {
 $result = $crud->list('clients', $crud->getBuilder()->sort('country', 'asc')
 ->sort('zip')->equals('name', 'alt')->withRelation('relation')
 ->withRelations(['rel1', 'rel2'])
 ->addCountRelations(['relation1'])->addExistRelation('relation2');
 $result = $crud->get('clients', '73', ['rel1', 'rel2']);
 $result = $crud->delete('clients', '73');
 $result = $crud->create('clients', [
 'active' => '1',
 'name' => 'abc',
 // ...
 ]);
 $result = $crud->update('clients', '73', [
 'active' => '1',
 'name' => 'abc',
 // ...
 ]);
 } catch (\Exception $e) {
 $decodedErrorMessage = \json_decode($e->getMessage());
 echo $decodedErrorMessage->message;
 }

 $decodedResult = \json_decode($result);

Discover more methods available by installing it.