Download the PHP package llm-agents/json-schema-mapper without Composer

On this page you can find all versions of the php package llm-agents/json-schema-mapper. 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 json-schema-mapper

JSON Schema Mapper for LLM Agents

PHP Latest Version on Packagist Total Downloads

This package is a super handy JSON Schema Mapper for the LLM Agents project.

What's it all about?

This package gives you a nifty SchemaMapper that can:

Class Diagram

Here's a quick look at how the main components fit together:

Getting Started

Installation

First things first, let's get this package installed:

Setting it up in Spiral

If you're using the Spiral framework (and why wouldn't you be? It's awesome!), you'll need to register the bootloader.

Here's how:

  1. Open up your app/src/Application/Kernel.php file.
  2. Add the LLM\Agents\JsonSchema\Mapper\Integration\Spiral\SchemaMapperBootloader to the defineBootloaders() method:

And that's it! The bootloader will take care of registering all the necessary components for you.

Setting it up in Laravel

If you're using the Laravel framework, you'll need to register the Service provider.

Here's how:

Just register the LLM\Agents\JsonSchema\Mapper\Integration\Laravel\SchemaMapperServiceProvider

And that's it! The service provider will take care of registering all the necessary components for you.

How to Use It

Converting a PHP Class to JSON Schema

Let's say you have a User class and you want to get its JSON schema:

Converting JSON to a PHP Object

Got some JSON data that you want to turn into a PHP object? No problem:

Contributing

We'd love your help to make this package even better! Here's how you can contribute:

  1. Fork the repository
  2. Write some awesome code
  3. Create a new Pull Request

Please make sure your code follows PSR-12 coding standards and include tests for any new features.

License

This package is open-sourced software licensed under the MIT license. Feel free to use it, modify it, and share it!


That's all, folks! If you have any questions or run into any issues, don't hesitate to open an issue on GitHub.


All versions of json-schema-mapper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spiral/json-schema-generator Version ^1.0
llm-agents/agents Version ^1.0
cuyz/valinor Version ^1.12
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 llm-agents/json-schema-mapper contains the following files

Loading the files please wait ....