Download the PHP package nexus4812/php-class-gen without Composer

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

This project is currently in draft stage

Breaking changes may occur until the official release.

PHP Class Generator

English

A powerful and flexible PHP code generation library. Create custom code generators easily with a command-based architecture. Perfect for generating boilerplate code, CQRS patterns, domain objects, and more.

Features

nette/php-generator Extensions

CLI is built on symfony/console.

MCP (Model Context Protocol) Support

Integrates with Claude Code/Claude Desktop for AI-assisted code generation:

Installation

Quick Start

1. Create Configuration File

Create phpgen.php in your project root:

2. Generate Code Using CLI

3. Verify Installation

Setup

Setup Steps

  1. Create Configuration File (phpgen.php)
  2. Configure PSR-4 Mapping (can be auto-loaded from composer.json)
  3. Register Commands

<� Built-in Commands

The following commands are available:

See src/Console/Commands/ for details.

Usage Examples

Creating Custom Commands

Basic Pattern

Registering Commands

See src/Console/Commands/Example/Laravel/ for detailed implementation examples.

Configuration

PSR-4 Mapping Management

Handle complex namespace scenarios with priority mappings:

Mapping Rules:

Configuration Methods

MCP Server Integration

PhpGen works as an MCP (Model Context Protocol) server and can be used directly from Claude Code or Claude Desktop.

Architecture

Built on the php-mcp/server library, automatically exposing existing Symfony commands as MCP tools.

Starting the Server

Claude Desktop Configuration

Add to Claude Desktop configuration file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

Available MCP Tools

Commands configured in your configuration file are available to AI via MCP.

Note: All tools are automatically generated from Symfony commands registered in phpgen.php.

Usage Example with Claude Code

=� Architecture

Core Generation Flow

See the src/ directory for details.

Troubleshooting

Debug Mode

Common Errors

"No PSR-4 mappings configured"

"Duplicate directory"


All versions of php-class-gen with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nette/php-generator Version ^4.0
php-mcp/server Version ^3.0
symfony/console Version ^6.0|^7.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 nexus4812/php-class-gen contains the following files

Loading the files please wait ...