Mouf is a special kind of PHP framework. It combines an Inversion of control (IOC) framework and a component download system in a nice Web-based user interface. The goal of Mouf is to help you use and re-use components. By itself, it does not provide anything useful, but it will help you download and install libraries of components, and bind those components together. You will get better and cleaner code using Mouf. Mouf features more than 100 packages providing various ready-to-use components of a Web application, ranging from an MVC framework to an ORM layer, logging, form generation, image manipulation, Drupal integration, authentication, etc.
libtld is a library used to extract the TLD from a URI and to check email validity. This allows you to extract the exact domain name, sub-domains, and all the TLD (top level, second level, third level, etc.). The problem with TLDs is that you cannot know where the domain starts. Some domains can use one top-level domain, others use two, etc. However, it may be useful to know where the domain is to have the exact list of sub-domains. For example, if you want to force www. at the start of the domain name if no other sub-domains are specified, then you need to know exactly how many TLD are defined in a URI. The libtld offers one main function: tld(), which gives you a way to extract the TLD from any URI. The result is the offset where the TLD starts. This gives you enough information to extract everything else you need. For emails, the library is capable of parsing a string that represents a list of email addresses to be verified. The verification includes a check of the domain name and its TLD.