macropay-solutions/maravel-crufd-wizard-client

Request builder for calling projects that implement macropay-solutions/maravel-crufd-wizard

Package info

github.com/macropay-solutions/maravel-crufd-wizard-client

pkg:composer/macropay-solutions/maravel-crufd-wizard-client

Statistics

Installs: 2

Dependents: 0

Suggesters: 2

Stars: 2

Open Issues: 0

1.1.0 2026-05-25 14:36 UTC

Requires

Requires (Dev)

Provides

None

Conflicts

None

Replaces

None

MIT 60efa74c6d4a51f46559f672b3722e92d5372b08

clientwizardcrudbuilderfreeinitiatorcrufd

This package is not auto-updated.

Last update: 2026-06-07 17:58:13 UTC


README

👁 Total Downloads
👁 Latest Stable Version
👁 License

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

and can be used for calling maravel-crufd-wizard

Install

composer require macropay-solutions/maravel-crufd-wizard-client

Start using it

 $crud = new \MacroPaySolutions\MaravelCrufdWizardClient\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.