Download the PHP package michaldudek/subdomain-blacklist without Composer

On this page you can find all versions of the php package michaldudek/subdomain-blacklist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package subdomain-blacklist

Subdomain Blacklist

List of common words that your users shouldn't use when setting up accounts.

Build Status SensioLabsInsight HHVM Status

When your app or service allows users to access their accounts using subdomains, e.g. michaldudek.myapp.com, it is useful to block some words so they don't take away a subdomain you'd want to use in the future or worse, try to trick your other users into believing they represent you (e.g. legal.myapp.com or support.myapp.com).

Apart from the blacklist, the goal of this repository is to provide code in various languages that validates a username against the list.

Note that the goal of this library IS NOT to validate domain name. You still have to check whether or not the given username makes a valid subdomain.

Acknowledgement

The idea and the list was originally taken from Sandeep Shetty.

Spec

Implementation MUST have a method/function called validate which takes a single string argument.

The validate method/function MUST return a boolean value.

Before a string is validates it MUST be normalized. Normalization of the string MUST:

addToList

Implementation CAN contain addToList (or add_to_list if more appropriate for the language) method/function that will add other items to the blacklist.

addToList method/function MUST accept single string argument.

addToList method/function CAN accept an array of strings as a single argument.

Before a string item is added to the blacklist via addToList method/function the default blacklist MUST be loaded.

Before a string item is added to the blacklist it MUST be normalized with the rules above.

getList

Implementation CAN contain getList (or get_list if more appropriate for the language) method/function that will return the blacklist.

Using and Languages

For more information about how to use this list in your specific language, please refer to README.md file in the language's folder.

Currently supported:

Planned:

You are welcome to add support for other languages.

Contributing

At this moment pull requests with support for various languages are most welcome.

If you add a language support make sure to cover it with appropriate tests.

Also if you think some words should be added to the list either open an issue or do a PR.

If you are editing a code please make sure to adhere to common patterns and rules in that language.

See more in each languages specific README.md file in their appropriate directory.


All versions of subdomain-blacklist with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package michaldudek/subdomain-blacklist contains the following files

Loading the files please wait ....