Download the PHP package elephentity/codegen-sqlite without Composer

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

elephentity-codegen-sqlite

Build-time SQLite generator for Elephentity's PHP runtime. It emits a storage manifest and an explicit initial schema installer for elephentity/sqlite. No WordPress package is required.

Install

Alternatively, run cargo install --path . --locked from a checkout and use eleph-gen-sqlite on PATH. Composer provides a shell launcher; it does not compile Rust automatically. Production needs only the runtime and generated PHP artifacts.

Configure the target in eleph.json, alongside your PHP entity target:

In spec/project.yml:

describe advertises the sqlite driver, so the compiler discovers it without a hardcoded driver addition. This builder speaks protocol 1 and IR 1.2. Use matching compiler/orchestrator/PHP-builder versions; an older IR is rejected explicitly.

Generated artifacts

File Purpose
storage-manifest.php Eleph\SQLite\Manifest\StorageManifest: entity tables, field mappings, indexes, edge placements and join tables
install.php A closure accepting PDO SQLite and an optional additional table prefix; atomically creates the initial schema

The orchestrator signs and writes these files. The builder returns JSON and never writes to the project directory itself.

The compiler has already applied project.storage.tablePrefix to the IR table names. If you need an additional deployment prefix, pass the same value to $install($database->pdo, $prefix) and $manifest->withPrefix($prefix). The SQLite prototype's Database::prefix() returns app_; the adapter itself uses the table names in the manifest, so do not automatically apply that prefix twice.

Schema behavior

The installer rejects an existing table and rolls back all changes. It rejects an existing transaction and enables foreign keys before beginning its own transaction. It does not modify populated schemas or claim to generate upgrade migrations. Keep reviewed migrations in the application. Existing SQLite runtime prototype limitations remain; this package does not fix the core deletion-planner issue noted in elephentity#89.

Verify

PHP tests use the tagged SQLite/runtime packages, create disposable databases and run the upstream adapter conformance harness for every relationship shape. They also check constraints, identifier prefixes, NULL, literal escaping and rollback.

The standalone example combines PHP, SQLite and GraphQL PHP generation. In the sibling-repository workspace, with the core's Composer dependencies and all three builders plus the orchestrator built, run:

This generates from YAML, checks signed output for drift, runs eleph check against actual generated entities and installs the generated SQLite schema. The GraphQL builder's test dependencies must also be installed for that workspace test.

See SOURCE.md for the source of reused protocol and fixture code.


All versions of codegen-sqlite 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-sqlite contains the following files

Loading the files please wait ...