Download the PHP package common-gateway/zgw-to-zds-bundle without Composer

On this page you can find all versions of the php package common-gateway/zgw-to-zds-bundle. 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 zgw-to-zds-bundle

PetStoreBundle Codacy Badge

This repository is for creating PHP Symfony flex bundles. The Common Gateway ecosystem uses this template for rapid development to extend Gateway functionlity outside of the Core.

The first section is about installing plugins. The latter part is about custom plugins to extend Common Gateway functionality.

Installation with the Common Gateway admin user-interface

Once a bundle is set up correctly (like this repository), the Common Gateway can discover the bundle without additional configuration. Head to the Plugins tab to search, select and install plugins.

Installing with PHP commands

To execute the following command, you will need Composer or a dockerized installation that already has PHP and Composer.

The Composer method in the terminal and root folder:

for the installation of the plugin

$composer require common-gateway/pet-store-bundle:dev-main

for the installation of schemas

`$php bin/console commongateway:install common-gateway/pet-store-bundle

The dockerized method in the terminal and root folder:

for the installation of the plugin

$docker-compose exec php composer require common-gateway/pet-store-bundle:dev-main

for the installation of schemas

$docker-compose exec php bin/console commongateway:install common-gateway/pet-store-bundle


Creating your Bundle

This section is for developers who want to build plugins to extend Common Gateway functionality without adding to the core codebase.

The following knowledge is assumed and/or installed:

Composer Packagist Docker Schema.json Basic knowledge of the Common Gateway

Using this template

This template is for rapid Symfony bundle development and meant as a model to base your custom plugin on. Follow the next steps to create your plugin within 45 minutes or less

  1. Login on GitHub
  2. Use this template
  3. Name your Bundle (CamelCase). The bundle needs to end with Bundle as per Symfony naming conventions.
  4. Press the green button Create repository from template
  5. Update file names and namespace to your fitting :

    • Open composer.json, and change the name to your fitting. The first word should be the namespace, and the second the bundle's name.

    Note: this is kebab-case. Also read: naming your package

    • Check the autoload field to be set accordingly.
    • Open PetStoreBundle.php and change the Bundle name and namespace. The namespace should be the same as your package name in composer.json but in CamelCase. So common-gateway/pet-store-bundle becomes CommonGateway/ZGW-to-ZDSBundle
    • Rename the /Service and /ActionHandler accordingly (or delete if not used).
    • Rename the /DependencyInjection/PetStoreExtension.php to your BundleNameExtension.php
    • Rename the /Resources/config/services.yaml namespaces

Adding schemas

You can load json schemas as Entities from your /Schema folder to use in the Common Gateway and work with objects based on your schemas.

You can add existing schemas or create your own and add them to the/Schema folder. There is an example shown here in /Schema/example.json.

The following properties are required, and without them, the Gateway won't recognize the schema as valid:

without this property, you can't update schemes

Unique $id to be relatable to other schemas.

Once you add schemas to the repository, you can also add objects/data for those schemas. There is an example shown in the /Data folder.


All versions of zgw-to-zds-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
commongateway/corebundle Version ^1.0.86
common-gateway/zgw-bundle Version ^1.0
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 common-gateway/zgw-to-zds-bundle contains the following files

Loading the files please wait ....