Skip to content

A PHP script for starting MODx Extras from modExtra. It does the replacement and directory renaming. To use, run via cli. To use, run via cli: php modx.startextra.php <project_name_ucfirst_plural>

Notifications You must be signed in to change notification settings

Jsewill/MODx-Extra-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

/*
 * modx.startextra.php copyright Abraham Sewill <[email protected]>
 *
 * modx.startextra is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * modx.startextra is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * modx.startextra; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 */

A PHP script for starting MODx Extras from modExtra. It does the replacement and directory renaming. To use, run via cli. To use, run via cli: php modx.startextra.php <project_name_ucfirst_plural> <copyright_info_path>

The first arguement passed to the script is the name of your Extra (i.e Doodles).  The script currently takes this value and maniputlates it in various ways to make it usable for replacing values.  For example:
	modExtra -> Doodles
	modextra -> doodles
	Item -> Doodle
	item -> doodle

I tried to find anything this might break, but there still may be important (ExtJS type) things replaced.  It is a work in progress.

The second parameter is a path to a file with copyright and license information, in case your name isn't Shaun McCormick.  ;-)  Perhaps you don't want to release your MODx Extra under the GPL.

About

A PHP script for starting MODx Extras from modExtra. It does the replacement and directory renaming. To use, run via cli. To use, run via cli: php modx.startextra.php <project_name_ucfirst_plural>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages