Download the PHP package gnkw/creator without Composer

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

GNKW Creator

Introduction

This creator is used to generate some PHP Classes in an organized structure. It use an autoloader, so you can easily call the classes you want between them and from a php main script by calling the autoloader. It also let you create PHPUnit test classes to test your php classes.

To use this Creator you need to have read and write rights to create files by PHP.

Install it with composer

To install composer :

$ curl -sS https://getcomposer.org/installer | php

To install the latest version of the creator :

Stable :

$ php composer.phar create-project gnkw/creator gnkw-creator

Dev :

$ php composer.phar create-project gnkw/creator gnkw-creator master

Go to your creator

$ cd gnkw-creator

Update from 1.x to 2.x

This is the version 2.x of the creator, so now, you can't transform your classes and you can't use the old notation class like this : MyClass.class.php.

Please transform your classes with the standard notation : MyClass.php before updating the creator.

Create a class

You can create a class by using this command (replace Name/Space and MyClass by your datas) :

$ php app/console.php create class Name/Space MyClass

Create a test class

To create a test class for a class using PHPUnit, it's a similar syntax :

$ php app/console.php create test Name/Space MyClass

Note : If the original class don't exist, the test class can't be created.

Use a class

Copy the index.php example file to your web directory

$ mkdir web && cp examples/index.php web/.

After that, you want use your classes, so go to the web/index.php file and use or precise the namespace in the Your Main Code section :

$ vim web/index.php

~~~~~{.php} /**

Then, when executing web/index.php, it returns :

$ php web/index.php
Hello MyClass !

All versions of creator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
gnkw/base Version 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 gnkw/creator contains the following files

Loading the files please wait ....