PEAR_Validate::validPackageName

PEAR_Validate::validPackageName() – utility method to validate a package name string

Synopsis

require_once '/Validate.php';

void PEAR_Validate::validPackageName ( string $name , string $validatepackagename = false )

Description

Validate a package name string. The second parameter should be the name of the channel validation package, as defined by channel.xml for the current channel. If the package name being validated is the same as the validation package (case-insensitive), then it will be validated using the default rules for PEAR packages.

Parameter

string $name

package name to validate

string $validatepackagename

name of channel-specific validation package

Throws

throws no exceptions thrown

Final

final - this method should not be overridden.

Note

This function can not be called statically.

This validates a dependency group name, and dependency group names must conform to the PEAR naming convention, so the method is final and static. (Previous) Determine whether $state represents a valid stability level (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.