create-plugin.php

34 views
Skip to first unread message

Christian Mohn

unread,
Nov 19, 2007, 6:35:25 PM11/19/07
to habar...@googlegroups.com
I just created a small CLI based PHP script to create plugins. Check it out
at http://habari.pastebin.ca/784960
Basically you do a 'php create-plugin.php test >> test.php' and it will
create a basic plugin structure for you to expand on.

Not sure how useful it'll be, but if someone wants to grab it and find a
proper home for it, feel free to do so.

Christian

Chris J. Davis

unread,
Nov 20, 2007, 8:16:50 AM11/20/07
to habar...@googlegroups.com
That is very cool. Nice work!

Chris

Michael C. Harris

unread,
Nov 21, 2007, 1:15:14 AM11/21/07
to habar...@googlegroups.com

I couldn't resist the meta-ness of making this a plugin creation
plugin as my first plugin. Probably useless but it was fun and taught
me about plugins.

http://habari.pastebin.ca/792190

The created plugins are owned by the server. There is no validation
and it doesn't check if the plugin can actually be created.

cheers, Michael

Michael C. Harris

unread,
Nov 21, 2007, 1:41:25 AM11/21/07
to habar...@googlegroups.com
On Wed, Nov 21, 2007 at 05:15:14PM +1100, Michael C. Harris wrote:
> I couldn't resist the meta-ness of making this a plugin creation
> plugin as my first plugin. Probably useless but it was fun and taught
> me about plugins.

Using habari's builtin UUID generation. Thanks ringmaster.

http://habari.pastebin.ca/792210

cheers, Michael

Christian Mohn

unread,
Nov 21, 2007, 2:34:46 AM11/21/07
to habar...@googlegroups.com
Oh, there is UUID builtin. Cool!

That was the reason I didn't just put the CLI version into -contrib, wasn't
sure about the license for code in comments on php.net.

As for the Plugin to Create Plugins, well, that's pretty much the most
useless thing I've seen in a long time ;-)

Michael C. Harris

unread,
Nov 21, 2007, 5:02:12 PM11/21/07
to habar...@googlegroups.com
On Wed, Nov 21, 2007 at 08:34:46AM +0100, Christian Mohn wrote:
>
> As for the Plugin to Create Plugins, well, that's pretty much the most
> useless thing I've seen in a long time ;-)

Geez, h0bbel, say what you mean, don't beat around the bush ;)

Yes, useless, but like I said, fun and I learnt stuff.

cheers, Michael

Christian Mohn

unread,
Nov 21, 2007, 5:27:53 PM11/21/07
to habar...@googlegroups.com
I saw no reason for bush beating, I found this funny. ;-)

-----Original Message-----
From: habar...@googlegroups.com [mailto:habar...@googlegroups.com] On
Behalf Of Michael C. Harris
Sent: 21. november 2007 23:02
To: habar...@googlegroups.com
Subject: [habari-dev] Re: create-plugin.php

Michael C. Harris

unread,
Nov 21, 2007, 6:20:24 PM11/21/07
to habar...@googlegroups.com
On Wed, Nov 21, 2007 at 11:27:53PM +0100, Christian Mohn wrote:
>
> I saw no reason for bush beating, I found this funny. ;-)

Good. It was meant to be.

Reply all
Reply to author
Forward
0 new messages