2017 © Pedro Peláez
 

library datatypes

Data type classes for PHP

image

datatypes/datatypes

Data type classes for PHP

  • Monday, December 25, 2017
  • by datatypes
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6,963 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

Data Types

Tests StyleCI License Latest Stable Version Total Downloads, (*1)

Data Types is a collection of data types classes for PHP., (*2)

Requirements

  • PHP >= 8.0

Install with Composer

``` bash $ composer require datatypes/datatypes, (*3)


## Basic usage ```php <?php use DataTypes\Net\EmailAddress; use DataTypes\Net\Url; require __DIR__ . '/vendor/autoload.php'; // Parse a url. $url = Url::parse('https://www.example.com/foo/bar'); // Prints "https". echo $url->getScheme(); // Prints "https://www.example.com/foo/bar?query". echo $url->withQueryString('query'); $path = $url->getPath(); // Prints "/foo/bar". echo $path; // Prints "/foo/". echo $path->getDirectory(); // Parse an email address. $email = EmailAddress::parse('foo.bar@example.com'); // Prints "example.com". echo $email->getHost(); // Returns false. Url::isValid('foo'); // Returns null. Url::tryParse('foo'); // Throws \DataTypes\Net\Exceptions\UrlInvalidArgumentException. Url::parse('foo');

License

MIT, (*4)

The Versions

25/12 2017

dev-develop

dev-develop

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

types data

25/12 2017

dev-master

9999999-dev

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

types data

25/12 2017

v2.0.0

2.0.0.0

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

types data

22/12 2017

v1.2.0

1.2.0.0

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

types data

01/10 2017

v1.1.0

1.1.0.0 https://phpdatatypes.com/

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

types data

28/09 2017

dev-add-email-address

dev-add-email-address https://phpdatatypes.com/

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

types data

29/05 2017

v1.0.1

1.0.1.0 https://phpdatatypes.com/

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

types data

23/05 2017

v1.0.0

1.0.0.0 https://phpdatatypes.com/

Data type classes for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

types data