[a-z0-9_]
$modx->loadClass('transport.modPackageBuilder','',false, true); $builder = new modPackageBuilder($modx); $builder->createPackage(PKG_NAME,PKG_VERSION,PKG_RELEASE); $builder->registerNamespace(PKG_NAME_LOWER,false,true,'{core_path}components/'.PKG_NAME_LOWER.'/'); $builder->package->name = "Better Name"; // I tried this with no success
This question has been answered by BobRay. See the first response.
define('PKG_NAME', 'MyPackage'); define('PKG_NAME_LOWER', 'mypackage');
BTW, during testing, if you install the package locally with "Search Locally for Packages" in Package Manager, you'll see the lowercase name (not sure why). When the package is installed through the MODX repo, though, it will show as mixed case.
It should be easy enough to fix, but I haven't found the code yet.
BTW, I strongly suggest that you avoid package names containing spaces, underscores, or hyphens.