def METHOD_NAME(self, install):
    ctx = install.builder._ctx
    (composer_json_file, composer_lock_file) = find_composer_paths(ctx)
    options_json_file = os.path.join(ctx['BUILD_DIR'],'.bp-config', 'options.json')
    if (os.path.isfile(options_json_file) and composer_json_file and os.path.isfile(composer_json_file)):
        # options.json and composer.json both exist. Check to see if both define a PHP version.
        composer_json = json.load(open(composer_json_file,'r'))
        options_json = json.load(open(options_json_file,'r'))
        if composer_json.get('require', {}).get('php') and options_json.get("PHP_VERSION"):
            print('WARNING: A version of PHP has been specified in both `composer.json` and `./bp-config/options.json`.')
            print('WARNING: The version defined in `composer.json` will be used.')
    if ctx.get('OPTIONS_JSON_HAS_PHP_EXTENSIONS', False):
        print("Warning: PHP_EXTENSIONS in options.json is deprecated. See: http://docs.cloudfoundry.org/buildpacks/php/gsg-php-config.html")
    print 'Installing PHP'
    validate_php_version(ctx)
    print 'PHP %s' % (ctx['PHP_VERSION'])
    major_minor = '.'.join(string.split(ctx['PHP_VERSION'], '.')[0:2])
    (install
        .package('PHP')
        .done())
    validate_php_ini_extensions(ctx)
    validate_php_extensions(ctx)
    convert_php_extensions(ctx)
    include_fpm_d_confs(ctx)
    (install
        .config()
            .from_application('.bp-config/php')  # noqa
            .or_from_build_pack('defaults/config/php/%s.x' % major_minor)
            .to('php/etc')
            .rewrite()
            .done())
    return 0