PHPackages                             jeffpacks/cody - 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. jeffpacks/cody

ActiveLibrary

jeffpacks/cody
==============

Library for creating PHP code with PHP code

1.0.0-alpha.3(2y ago)04MITPHPPHP ^7.4|^8.0|^8.1|^8.2

Since Oct 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeffpacks/cody)[ Packagist](https://packagist.org/packages/jeffpacks/cody)[ Docs](https://github.com/jeffpacks)[ RSS](/packages/jeffpacks-cody/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

About
=====

[](#about)

Cody is a PHP package for generating PHP files.

Requirements
------------

[](#requirements)

This library requires PHP &gt;= 7.4.

Installing
==========

[](#installing)

Composer
--------

[](#composer)

1. Run `composer require jeffpacks/cody` in your shell

Download
--------

[](#download)

If you've downloaded or received the `jeffpacks/cody` package manually, you may place it anywhere in your file system and call `require_once('/path/to/cody/autoload.php')` in your code to start using it.

Concept
=======

[](#concept)

Cody lets you create a code "project" and populate it with PHP classes, interfaces and traits. Once your code has created the project, the project can be exported to the file system as a codebase.

In Cody, namespaces are the starting point for creating classes, interfaces, traits and sub-namespaces.

Examples
--------

[](#examples)

The `jeffpacks\cody\Cody::createProject()` method creates and returns a new `Project` instance.

```
