We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b5004a commit 5858156Copy full SHA for 5858156
README.md
@@ -8,6 +8,29 @@
8
9
A package that creates PHP classes using PHP. That's it.
10
11
+``` php
12
+use Rougin\Classidy\Classidy;
13
+use Rougin\Classidy\Generator;
14
+use Rougin\Classidy\Method;
15
+
16
+$class = new Classidy;
17
18
+$class->setName('Hello');
19
20
+$method = new Method('hi');
21
22
+$method->setCodeEval(function ()
23
+{
24
+ return 'Hello world!';
25
+});
26
27
+$class->addMethod($method);
28
29
+$maker = new Generator;
30
31
+echo $maker->make($class);
32
+```
33
34
## Installation
35
36
Install `Classidy` through [Composer](https://getcomposer.org/):
0 commit comments