Download the PHP package elephentity/codegen-graphql-php without Composer

On this page you can find all versions of the php package elephentity/codegen-graphql-php. 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 codegen-graphql-php

elephentity-codegen-graphql-php

Build-time generator for elephentity/graphql, the standalone PHP integration using webonyx. It turns Elephentity's compiled schema into a GraphQL manifest and a conformance verifier. It requires no WordPress or WPGraphQL runtime.

Install

Alternatively, cargo install --path . --locked installs eleph-gen-graphql-php. Composer provides a shell launcher, not an automatic Rust build. Production uses elephentity/graphql and the generated PHP files; the builder stays in development.

Add the target alongside PHP entity generation in eleph.json:

Declare integrations: { graphql: {} } in the project specification, then expose entities explicitly:

The target is graphql-php; the integration key is graphql. The driver is independent: this can consume an entity schema using SQLite or another storage driver. singular defaults to the entity name. plural defaults to <Singular>Collection, keeping root collection and single-record fields distinct without guessing plurals.

Publish a declared query with integrations: { graphql: { field: searchBooks } } on the query. Its return entity must also be exposed. The field override is optional.

describe advertises the generic integration to the compiler. This builder speaks protocol 1 and IR 1.2; use matching compiler/orchestrator/PHP-builder versions.

Generated artifacts

File Purpose
graphql-manifest.php Eleph\GraphQL\Manifest\Manifest, covering object/enum types, roots, relationships, mutations, actions and published queries
verify.php A core Verifier that checks manifest accessors against generated entity classes

Keep the GraphQL output under the PHP output directory, such as generated/graphql, so eleph check discovers its verify.php. The verifier reads the manifest on disk and checks the actual generated classes; it does not depend on a WPGraphQL verifier class.

The orchestrator signs and writes the returned PHP bodies. The generator does not write files or build a request-time GraphQL server. At runtime, load the manifest, pass it and an EntityGateway to TypeRegistrar and MutationRegistrar, and assemble their configs with SchemaBuilder. The application supplies Node/PageInfo registration, HTTP transport, authentication, and any connection argument adaptation. tests/runtime.php contains an executable schema assembly example.

Supported surface

Delete mutations are derived from root entries by the runtime registrar. Project-wide rootQueries and mutations toggles are intentionally not declared by this initial integration: the current generic runtime uses roots for delete registration too. The existing standalone runtime's ID validation, backward-pagination and query-only schema limitations are not changed by adding this generator. Those are tracked in elephentity#90.

Verify

The Rust tests invoke the actual binary and check the protocol, errors and frozen output. PHP tests install the tagged standalone runtime, validate generated schemas with webonyx and execute queries, enums, Relay pagination, mutations and actions. They also check the verifier against missing and matching entity accessors.

For a complete compiler-to-runtime example, see the sibling SQLite builder's examples/standalone and tools/test-pipeline.php. See SOURCE.md for provenance of the adapted generator code.


All versions of codegen-graphql-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
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 elephentity/codegen-graphql-php contains the following files

Loading the files please wait ...