PHPackages                             gnkw/creator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gnkw/creator

ActiveProject

gnkw/creator
============

v2.0.1(12y ago)5511AGPL-3.0PHPPHP &gt;=5.3.3

Since Sep 2Pushed 12y ago2 watchersCompare

[ Source](https://github.com/gnkw/creator)[ Packagist](https://packagist.org/packages/gnkw/creator)[ Docs](http://www.gnkw.org)[ RSS](/packages/gnkw-creator/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

GNKW Creator
============

[](#gnkw-creator)

Introduction
------------

[](#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
------------------------

[](#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
----------------------

[](#update-from-1x-to-2x)

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
--------------

[](#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
-------------------

[](#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
-----------

[](#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

```

```
	/**
	* Your Main Code
	*/
	use \Name\Space\MyClass;
	$myClass = new MyClass();

```

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

```
$ php web/index.php
Hello MyClass !

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Recently: every ~32 days

Total

6

Last Release

4507d ago

Major Versions

v1.2.0 → v2.02013-09-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/359ffe625a45e6a838225db90d4aec738a662a45d022930493224e000d0c3ab4?d=identicon)[Gnuk](/maintainers/Gnuk)

---

Top Contributors

[![Gnuk](https://avatars.githubusercontent.com/u/1397032?v=4)](https://github.com/Gnuk "Gnuk (14 commits)")

---

Tags

webcreatorkernelnetworkgnkwgnuk

### Embed Badge

![Health badge](/badges/gnkw-creator/health.svg)

```
[![Health](https://phpackages.com/badges/gnkw-creator/health.svg)](https://phpackages.com/packages/gnkw-creator)
```

###  Alternatives

[twbs/bootstrap

The most popular front-end framework for developing responsive, mobile first projects on the web.

174.1k17.6M327](/packages/twbs-bootstrap)[almasaeed2010/adminlte

AdminLTE - admin control panel and dashboard that's based on Bootstrap 4

45.3k8.5M140](/packages/almasaeed2010-adminlte)[behat/mink

Browser controller/emulator abstraction for PHP

1.6k86.1M606](/packages/behat-mink)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[greenlion/php-sql-parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL

63911.6M82](/packages/greenlion-php-sql-parser)[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
