Composer

extends Module\Support\Webapps

Known subclasses

Laravel_Module
Methods Summary
public
# plugin_status( string $hostname , string $path = '', string $plugin = NULL )
Check package dependency
public
# uninstall_plugin( string $hostname , string $path = '', string $plugin , bool $force = false )
Uninstall Composer package
public
# disable_all_plugins( string $hostname , string $path = '' )
Remove all packages Blocked because it's a Really Bad Idea(TM)
public
# get_versions( )
Get all available Composer versions
public
# next_version( string $version , string $maximalbranch = '99999999.99999999.99999999' )
Get next Composer version

Overrides

public
# reconfigure( string $field , string $attribute , array $new , array $old = NULL )
Reconfigure a Composer instance
public
# get_configuration( $field )
public
# install( string $hostname , string $path = '', array $opts = array ( ) )
Install Composer into a pre-existing location
protected
# getAppRoot( string $hostname , string $path = '' )
Get app root for Composer

Overrides

public
# install_plugin( string $hostname , string $path = '', string $plugin , string $version = 'stable' )
Install and activate Composer package
public
# uninstall( string $hostname , string $path = '', string $delete = 'all' )
Uninstall Composer backed package from a location

Overrides

public
# valid( string $hostname , string $path = '' )
Location is a valid WP install
public
# db_config( string $hostname , string $path = '' )
Get database configuration
public
# is_current( string $version = NULL, string $branchcomp = NULL )
Check if version is latest or get latest version

Overrides

public
# change_admin( string $hostname , string $path = '', array $fields )
Change Composer admin credentials Common fields include: password, email, name; email doubles as login
public
# get_admin( string $hostname , string $path = '' )
Get the primary admin for a WP instance
public
# get_appname( string $hostname , string $path = '' )
Get Laravel application name
public
# get_version( string $hostname , string $path = '' )
Get installed version
public
# update_all( string $hostname , string $path = '', string $version = NULL )
Update core, plugins, and themes atomically
public
# update( string $hostname , string $path = '', string $version = NULL )
Update Composer to latest version
public
# update_plugins( string $hostname , string $path = '', array $plugins = array ( ) )
Update plugins
public
# update_themes( string $hostname , string $path = '', array $themes = array ( ) )
Update Laravel themes
public
# has_fortification( string $mode = NULL )
Web application supports fortification

Overrides

public
# fortify( string $hostname , string $path = '', string $mode = 'max' )
Restrict write-access by the app

Overrides

public
# _housekeeping( )
Laravel housekeeping
public
# theme_status( string $hostname , string $path = '', string $theme = NULL )
public
# install_theme( string $hostname , string $path = '', string $theme , string $version = NULL )
Methods inherited from Module\Support\Webapps
fortify(), getACLFiles(), failed(), getAppRoot(), getDocumentRoot(), valid(), getInternalName(), getVersionLock(), getDocrootUser(), getApnscpFunctionInterceptorFromDocroot(), _mapFiles(), buildFileMapList(), setOptions(), hasMemoryAllowance(), hasStorageAllowance(), movePrimaryDocumentRoot(), remapPublic(), has_fortification(), unfortify(), getOptions(), uninstall(), map(), getModule(), checkEmail(), prepareSquash(), checkVersion(), unsquash(), next_version(), is_current(), _cron(), checkDocroot(), kill(), _suggestDB(), _suggestUser(), suggestPassword(), setupDatabase(), getLatestVersion(), fixRewriteBase(), download(), setInfo(), _getWebappExtraStorageDirectory(), knownApps(), configureSsl(), theme_status(), install_theme(), uninstall_theme()
Methods inherited from Module\Skeleton\Standard
__construct(), __wakeup(), autoloadModule(), setUserParameters(), cleanUserParameters(), setSessionId(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), getServices(), getNewServices(), getActiveServices(), getConfig(), getServiceValue(), setConfigJournal(), setConfig(), query(), _resetModule()
Constants Summary
public string APP_NAME
# 'Composer'
public string DEFAULT_VERSION_LOCK
# 'minor'
Constants inherited from Module\Support\Webapps
APPLICATION_PREF_KEY , APP_NAME , DEFAULT_VERSION_LOCK
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties inherited from Module\Support\Webapps
$exportedFunctions
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql