PHP Classes

How to Use PHP Classes to Manipulate Internet Domains and Email Addresses Using the Package Types 1: Classes and traits to implement common data types

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-11-19 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: 1 This week: 1All time: 11,491 This week: 52Up
Version License PHP version Categories
types-1 1.0MIT/X Consortium ...5Networking, PHP 5, Data types
Description 

Author

This package provides classes and traits to implement common data types.

It provides a few classes that can be used in applications to encapsulate data types.

Currently, it provides:

- A trait to perform checks with dates

- A class to process Internet domains

- A class to process email addresses

Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 38 packages by
Country: Taiwan Taiwan
Innovation award
Innovation award
Nominee: 17x

Winner: 1x

Documentation

Types

Common data types implementations.

Latest Stable Version License Build Status Coverage Status

Contents

  • Date & time types: * Helpers: * Date coming check trait
  • Exceptions: * InvalidArgumentTypeException
  • Internet types: * Domain name * E-mail address
  • Computed string
  • Null object (for Special Case pattern)

Utils:

  • Type checker

  Files folder image Files (20)  
File Role Description
Files folder imagesrc (2 files, 4 directories)
Files folder imagetests (2 files, 4 directories)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (20)  /  src  
File Role Description
Files folder imageDateTime (1 directory)
Files folder imageException (1 file)
Files folder imageInternet (2 files)
Files folder imageUtil (1 file)
  Plain text file ComputedString.php Class Class source
  Plain text file NullObject.php Class Class source

  Files folder image Files (20)  /  src  /  DateTime  
File Role Description
Files folder imageTraits (1 file)

  Files folder image Files (20)  /  src  /  DateTime  /  Traits  
File Role Description
  Plain text file DateComingChecks.php Class Class source

  Files folder image Files (20)  /  src  /  Exception  
File Role Description
  Plain text file InvalidArgumentTypeException.php Class Class source

  Files folder image Files (20)  /  src  /  Internet  
File Role Description
  Plain text file Domain.php Class Class source
  Plain text file EmailAddress.php Class Class source

  Files folder image Files (20)  /  src  /  Util  
File Role Description
  Plain text file TypeChecker.php Class Class source

  Files folder image Files (20)  /  tests  
File Role Description
Files folder imageDateTime (1 directory)
Files folder imageException (1 file)
Files folder imageInternet (2 files)
Files folder imageUtil (1 file)
  Plain text file ComputedStringTest.php Class Class source
  Plain text file NullObjectTest.php Class Class source

  Files folder image Files (20)  /  tests  /  DateTime  
File Role Description
Files folder imageTraits (1 file)

  Files folder image Files (20)  /  tests  /  DateTime  /  Traits  
File Role Description
  Plain text file DateComingChecksTest.php Class Class source

  Files folder image Files (20)  /  tests  /  Exception  
File Role Description
  Plain text file InvalidArgumentTypeExceptionTest.php Class Class source

  Files folder image Files (20)  /  tests  /  Internet  
File Role Description
  Plain text file DomainTest.php Class Class source
  Plain text file EmailAddressTest.php Class Class source

  Files folder image Files (20)  /  tests  /  Util  
File Role Description
  Plain text file TypeCheckerTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:1
This week:1
All time:11,491
This week:52Up