Download the PHP package dealroadshow/kodegen without Composer

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

Dealroadshow Kodegen

This project provides cli to generate PHP classes for Kubernetes API objects. It uses official Kubernetes API json schema in order to generate classes for all API objects that corresponding Kubernetes version provides.

Installation

The recommended way to install Kodegen is Composer. Install kodegen cli globally and use it anywhere, as long as Composer vendor/bin directory is in your PATH. Usually this dir is $HOME/.composer/vendor/bin.

Usage

For generic json schemas

In order to generate PHP code from generic json schema, just run the following command:

It will guide you through the generation process interactively.

For Kubernetes json schema

At first you want to determine the latest API versions for chosen Kubernetes version. For example, the latest json schema version for Kubernetes v1.20 is v1.20.10. In order to get this versions, run command:

The output of this command may look like follows:

After that you may use this json to retrieve Kubernetes json schema:

The command above will let you chose one on Kubernetes versions, defined in DEALROADSHOW_KODEGEN_JSON_SCHEMA_VERSIONS env variable.

When you have your Kubernetes json schema, you can generate PHP classes from it:

This command will guide you through the generation process interactively.


All versions of kodegen with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-ctype Version *
ext-iconv Version *
ext-json Version *
guzzlehttp/psr7 Version ^2.0
knplabs/github-api Version ^3.0@dev
nette/php-generator Version ^3.5
symfony/console Version >=5.2
symfony/dotenv Version >=5.2
symfony/flex Version ^1.11
symfony/framework-bundle Version >=5.2
symfony/http-client Version >=5.2
symfony/maker-bundle Version ^1.20
symfony/yaml Version >=5.2
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 dealroadshow/kodegen contains the following files

Loading the files please wait ....