PHP Classes
elePHPant
Icontem

PHP Scalar Objects: Implement objects that behave like scalar values

Recommend this page to a friend!

  Author Author  
Name: Axel Pardemann <contact>
Classes: 4 packages by
Country: Mexico Mexico


  Detailed description   Download Download .zip .tar.gz  
This package implements objects that behave like scalar values.

It provides several classes that behave like scalar data types.

Currently it provides classes to create objects that behave like scalar data types like numbers, strings and characters.

Details

<div align="center">

<h1>PHP Scalar Objects</h1>
<p align="center">
    <a href="https://packagist.org/packages/norse-blue/scalar-objects"><img alt="Stable Release" src="https://img.shields.io/packagist/v/norse-blue/scalar-objects.svg?style=flat-square&label=release&logo=packagist&logoColor=eceff4&colorA=4c566a&colorB=5e81ac"></a>
    <a href="https://travis-ci.com/norse-blue/php-scalar-objects"><img alt="Build Status" src="https://img.shields.io/travis/com/norse-blue/php-scalar-objects.svg?style=flat-square&label=build&logo=travis-ci&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://php.net/releases"><img alt="PHP Version" src="https://img.shields.io/packagist/php-v/norse-blue/scalar-objects.svg?style=flat-square&label=php&logo=php&logoColor=eceff4&colorA=4c566a&colorB=b48ead"></a>
    <a href="https://codeclimate.com/github/norse-blue/php-scalar-objects"><img alt="Maintainability" src="https://img.shields.io/codeclimate/maintainability/norse-blue/php-scalar-objects.svg?style=flat-square&label=maintainability&logo=code-climate&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://codeclimate.com/github/norse-blue/php-scalar-objects"><img alt="Test Coverage" src="https://img.shields.io/codeclimate/coverage/norse-blue/php-scalar-objects.svg?style=flat-square&label=coverage&logo=code-climate&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://packagist.org/packages/norse-blue/scalar-objects"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/norse-blue/scalar-objects.svg?style=flat-square&label=downloads&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"></a>
    <a href="https://github.com/norse-blue/php-scalar-objects/blob/master/LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/norse-blue/php-scalar-objects.svg?style=flat-square&label=license&logoColor=eceff4&colorA=4c566a&colorB=a3be8c"></a>
</p>

</div> <hr>

PHP Scalar Objects is a PHP library that implements scalar primitives as objects that can be extended with useful methods.

Installation

>Requirements: >- PHP 7.3+

Install this package using Composer:

composer require norse-blue/scalar-objects

Usage

To get more in-depth knowledge about this package, please refer to the Official Documentation.

Changelog

Please refer to the CHANGELOG.md file for more information about what has changed recently.

Contributing

Contributions to this project are accepted and encouraged. Please read the CONTRIBUTING.md file for details on contributions.

Credits

Security

Please review our security policy to know how to report security vulnerabilities within this package.

Support the development

Do you like this project? Support it by donating

<a href="https://www.buymeacoffee.com/axelitus"><img src="docs/assets/images/buy-me-a-coffee.svg" width="180" alt="Buy me a coffee"></img></a>

License

This package is open-sourced software licensed under the MIT license.


  Classes of Axel Pardemann  >  PHP Scalar Objects  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Scalar Objects
Base name: php-scalar-objects
Description: Implement objects that behave like scalar values
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder image.changelog (1 file)
Files folder image.github (4 files, 1 directory)
Files folder imagedocs (2 files, 2 directories)
Files folder imagesrc (3 files, 7 directories)
Files folder imagetests (1 file, 6 directories)
Accessible without login Plain text file .codeclimate.yml Data Auxiliary data
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .phpcs.xml.dist Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
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.md Lic. License text
Accessible without login Plain text file php-scalar-objects.sublime-project Data Auxiliary data
Plain text file phpinsights.php Class Class source
Accessible without login Plain text file phpstan.neon.dist Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file SECURITY.md Data Auxiliary data

  Files folder image Files  /  .changelog  
File Role Description
  Accessible without login Plain text file CHANGELOG-0.0.0.md Data Auxiliary data

  Files folder image Files  /  .github  
File Role Description
Files folder imageISSUE_TEMPLATE (3 files)
  Accessible without login Plain text file CODE_OF_CONDUCT.md Data Auxiliary data
  Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data
  Accessible without login Plain text file PULL_REQUEST_TEMPLATE.md Data Auxiliary data

  Files folder image Files  /  .github  /  ISSUE_TEMPLATE  
File Role Description
  Accessible without login Plain text file BUG_REPORT.md Data Auxiliary data
  Accessible without login Plain text file FEATURE_REQUEST.md Data Auxiliary data
  Accessible without login Plain text file QUESTION_DISCUSSION.md Data Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder imageassets (2 directories)
Files folder image_sass (1 directory)
  Accessible without login Plain text file index.md Data Auxiliary data
  Accessible without login Plain text file _config.yml Data Auxiliary data

  Files folder image Files  /  docs  /  assets  
File Role Description
Files folder imageimages (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  docs  /  assets  /  images  
File Role Description
  Accessible without login Plain text file buy-me-a-coffee.svg Data Auxiliary data

  Files folder image Files  /  docs  /  assets  /  js  
File Role Description
  Accessible without login Plain text file search-data.json Data Auxiliary data

  Files folder image Files  /  docs  /  _sass  
File Role Description
Files folder imagecustom (1 file)

  Files folder image Files  /  docs  /  _sass  /  custom  
File Role Description
  Accessible without login Plain text file custom.scss Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageExceptions (1 directory)
Files folder imageExtensions (3 directories)
Files folder imageFacades (6 files)
Files folder imageFunctions (5 files)
Files folder imageSupport (1 file)
Files folder imageTraits (2 directories)
Files folder imageTypes (5 files)
  Plain text file bootstrap.php Class Class source
  Accessible without login Plain text file path_merge.php Aux. Auxiliary script
  Plain text file PrimitiveType.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
Files folder imageString (1 file)

  Files folder image Files  /  src  /  Exceptions  /  String  
File Role Description
  Plain text file MacSeparatorLengthException.php Class Class source

  Files folder image Files  /  src  /  Extensions  
File Role Description
Files folder imageBool (4 files)
Files folder imageNumber (8 files)
Files folder imageString (48 files)

  Files folder image Files  /  src  /  Extensions  /  Bool  
File Role Description
  Plain text file BoolAndExtension.php Class Class source
  Plain text file BoolNotExtension.php Class Class source
  Plain text file BoolOrExtension.php Class Class source
  Plain text file BoolXorExtension.php Class Class source

  Files folder image Files  /  src  /  Extensions  /  Number  
File Role Description
  Plain text file NumberAbsExtension.php Class Class source
  Plain text file NumberGreaterThanExtension.php Class Class source
  Plain text file NumberGreaterThanOrEqualExtension.php Class Class source
  Plain text file NumberLessThanExtension.php Class Class source
  Plain text file NumberLessThanOrEqualExtension.php Class Class source
  Plain text file NumberPadExtension.php Class Class source
  Plain text file NumberPadLeftExtension.php Class Class source
  Plain text file NumberPadRightExtension.php Class Class source

  Files folder image Files  /  src  /  Extensions  /  String  
File Role Description
  Plain text file StringAfterExtension.php Class Class source
  Plain text file StringAsciiExtension.php Class Class source
  Plain text file StringBeforeExtension.php Class Class source
  Plain text file StringCamelExtension.php Class Class source
  Plain text file StringConcatExtension.php Class Class source
  Plain text file StringContainsExtension.php Class Class source
  Plain text file StringEndsWithExtension.php Class Class source
  Plain text file StringExplodeExtension.php Class Class source
  Plain text file StringFinishExtension.php Class Class source
  Plain text file StringIsDomainExtension.php Class Class source
  Plain text file StringIsEmailExtension.php Class Class source
  Plain text file StringIsHostnameExtension.php Class Class source
  Plain text file StringIsIpExtension.php Class Class source
  Plain text file StringIsMacExtension.php Class Class source
  Plain text file StringIsUrlExtension.php Class Class source
  Plain text file StringKebabExtension.php Class Class source
  Plain text file StringLeftExtension.php Class Class source
  Plain text file StringLengthExtension.php Class Class source
  Plain text file StringLimitExtension.php Class Class source
  Plain text file StringLowerCaseFirstExtension.php Class Class source
  Plain text file StringLowerExtension.php Class Class source
  Plain text file StringPadExtension.php Class Class source
  Plain text file StringPadLeftExtension.php Class Class source
  Plain text file StringPadRightExtension.php Class Class source
  Plain text file StringPrefixExtension.php Class Class source
  Plain text file StringRemoveExtension.php Class Class source
  Plain text file StringRepeatExtension.php Class Class source
  Plain text file StringReplaceArrayExtension.php Class Class source
  Plain text file StringReplaceExtension.php Class Class source
  Plain text file StringReplaceFirstExtension.php Class Class source
  Plain text file StringReplaceLastExtension.php Class Class source
  Plain text file StringRightExtension.php Class Class source
  Plain text file StringSlugExtension.php Class Class source
  Plain text file StringSnakeExtension.php Class Class source
  Plain text file StringStartExtension.php Class Class source
  Plain text file StringStartsWithExtension.php Class Class source
  Plain text file StringStudlyExtension.php Class Class source
  Plain text file StringSubstrExtension.php Class Class source
  Plain text file StringSuffixExtension.php Class Class source
  Plain text file StringSurroundExtension.php Class Class source
  Plain text file StringTitleExtension.php Class Class source
  Plain text file StringToggleExtension.php Class Class source
  Plain text file StringTrimExtension.php Class Class source
  Plain text file StringTrimLeftExtension.php Class Class source
  Plain text file StringTrimRightExtension.php Class Class source
  Plain text file StringUpperCaseFirstExtension.php Class Class source
  Plain text file StringUpperExtension.php Class Class source
  Plain text file StringWordsExtension.php Class Class source

  Files folder image Files  /  src  /  Facades  
File Role Description
  Plain text file BaseFacade.php Class Class source
  Plain text file BoolFacade.php Class Class source
  Plain text file FloatFacade.php Class Class source
  Plain text file IntFacade.php Class Class source
  Plain text file NumberFacade.php Class Class source
  Plain text file StringFacade.php Class Class source

  Files folder image Files  /  src  /  Functions  
File Role Description
  Accessible without login Plain text file bool.php Example Example script
  Accessible without login Plain text file float.php Example Example script
  Accessible without login Plain text file int.php Example Example script
  Accessible without login Plain text file number.php Example Example script
  Accessible without login Plain text file string.php Example Example script

  Files folder image Files  /  src  /  Support  
File Role Description
  Plain text file Character.php Class Class source

  Files folder image Files  /  src  /  Traits  
File Role Description
Files folder imageNumber (2 files)
Files folder imageString (4 files)

  Files folder image Files  /  src  /  Traits  /  Number  
File Role Description
  Plain text file NumberCheckMethods.php Class Class source
  Plain text file NumberConversionMethods.php Class Class source

  Files folder image Files  /  src  /  Traits  /  String  
File Role Description
  Plain text file StringArrayAccess.php Class Class source
  Plain text file StringCheckMethods.php Class Class source
  Plain text file StringCountable.php Class Class source
  Plain text file StringStaticMethods.php Class Class source

  Files folder image Files  /  src  /  Types  
File Role Description
  Plain text file BoolType.php Class Class source
  Plain text file FloatType.php Class Class source
  Plain text file IntType.php Class Class source
  Plain text file NumberType.php Class Class source
  Plain text file StringType.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageExtensions (5 directories)
Files folder imageFacades (1 file)
Files folder imageFunctions (1 file)
Files folder imageHelpers (1 directory)
Files folder imagePrimitives (1 file)
Files folder imageTypes (5 directories)
  Plain text file TestCase.php Class Class source

  Files folder image Files  /  tests  /  Extensions  
File Role Description
Files folder imageBool (4 files)
Files folder imageFloat (5 files)
Files folder imageInt (5 files)
Files folder imageNumber (4 files)
Files folder imageString (49 files)

  Files folder image Files  /  tests  /  Extensions  /  Bool  
File Role Description
  Plain text file BoolAndTest.php Class Class source
  Plain text file BoolNotTest.php Class Class source
  Plain text file BoolOrTest.php Class Class source
  Plain text file BoolXorTest.php Class Class source

  Files folder image Files  /  tests  /  Extensions  /  Float  
File Role Description
  Plain text file FloatAbsTest.php Class Class source
  Plain text file FloatGreaterThanOrEqualTest.php Class Class source
  Plain text file FloatGreaterThanTest.php Class Class source
  Plain text file FloatLessThanOrEqualTest.php Class Class source
  Plain text file FloatLessThanTest.php Class Class source

  Files folder image Files  /  tests  /  Extensions  /  Int  
File Role Description
  Plain text file IntAbsTest.php Class Class source
  Plain text file IntGreaterThanOrEqualTest.php Class Class source
  Plain text file IntGreaterThanTest.php Class Class source
  Plain text file IntLessThanOrEqualTest.php Class Class source
  Plain text file IntLessThanTest.php Class Class source

  Files folder image Files  /  tests  /  Extensions  /  Number  
File Role Description
  Plain text file NumberAbsTest.php Class Class source
  Plain text file NumberPadLeftTest.php Class Class source
  Plain text file NumberPadRightTest.php Class Class source
  Plain text file NumberPadTest.php Class Class source

  Files folder image Files  /  tests  /  Extensions  /  String  
File Role Description
  Plain text file StringAccordTest.php Class Class source
  Plain text file StringAfterTest.php Class Class source
  Plain text file StringAsciiTest.php Class Class source
  Plain text file StringBeforeTest.php Class Class source
  Plain text file StringCamelTest.php Class Class source
  Plain text file StringContainsTest.php Class Class source
  Plain text file StringEndsWithTest.php Class Class source
  Plain text file StringExplodeTest.php Class Class source
  Plain text file StringFinishTest.php Class Class source
  Plain text file StringIsDomainTest.php Class Class source
  Plain text file StringIsEmailTest.php Class Class source
  Plain text file StringIsHostnameTest.php Class Class source
  Plain text file StringIsIpTest.php Class Class source
  Plain text file StringIsMacTest.php Class Class source
  Plain text file StringIsUrlTest.php Class Class source
  Plain text file StringKebabTest.php Class Class source
  Plain text file StringLeftTest.php Class Class source
  Plain text file StringLengthTest.php Class Class source
  Plain text file StringLimitTest.php Class Class source
  Plain text file StringLowerCaseFirstTest.php Class Class source
  Plain text file StringLowerTest.php Class Class source
  Plain text file StringPadLeftTest.php Class Class source
  Plain text file StringPadRightTest.php Class Class source
  Plain text file StringPadTest.php Class Class source
  Plain text file StringPrefixTest.php Class Class source
  Plain text file StringRandomTest.php Class Class source
  Plain text file StringRemoveTest.php Class Class source
  Plain text file StringRepeatTest.php Class Class source
  Plain text file StringReplaceArrayTest.php Class Class source
  Plain text file StringReplaceFirstTest.php Class Class source
  Plain text file StringReplaceLastTest.php Class Class source
  Plain text file StringReplaceTest.php Class Class source
  Plain text file StringRightTest.php Class Class source
  Plain text file StringSlugTest.php Class Class source
  Plain text file StringSnakeTest.php Class Class source
  Plain text file StringStartsWithTest.php Class Class source
  Plain text file StringStartTest.php Class Class source
  Plain text file StringStudlyTest.php Class Class source
  Plain text file StringSubstrTest.php Class Class source
  Plain text file StringSuffixTest.php Class Class source
  Plain text file StringSurroundTest.php Class Class source
  Plain text file StringTitleTest.php Class Class source
  Plain text file StringToggleTest.php Class Class source
  Plain text file StringTrimLeftTest.php Class Class source
  Plain text file StringTrimRightTest.php Class Class source
  Plain text file StringTrimTest.php Class Class source
  Plain text file StringUpperCaseFirstTest.php Class Class source
  Plain text file StringUpperTest.php Class Class source
  Plain text file StringWordsTest.php Class Class source

  Files folder image Files  /  tests  /  Facades  
File Role Description
  Plain text file InvalidFacadeTargetClassTest.php Class Class source

  Files folder image Files  /  tests  /  Functions  
File Role Description
  Plain text file CreateTypeObjectsTest.php Class Class source

  Files folder image Files  /  tests  /  Helpers  
File Role Description
Files folder imageFacades (1 file)

  Files folder image Files  /  tests  /  Helpers  /  Facades  
File Role Description
  Plain text file InvalidFacade.php Class Class source

  Files folder image Files  /  tests  /  Primitives  
File Role Description
  Plain text file EqualsTest.php Class Class source

  Files folder image Files  /  tests  /  Types  
File Role Description
Files folder imageBool (3 files)
Files folder imageFloat (5 files)
Files folder imageInt (5 files)
Files folder imageNumber (1 file)
Files folder imageString (5 files)

  Files folder image Files  /  tests  /  Types  /  Bool  
File Role Description
  Plain text file BoolEqualsTest.php Class Class source
  Plain text file CheckValueTest.php Class Class source
  Plain text file CreateTypeTest.php Class Class source

  Files folder image Files  /  tests  /  Types  /  Float  
File Role Description
  Plain text file CheckValueZeroTest.php Class Class source
  Plain text file ConvertValueTest.php Class Class source
  Plain text file CreateTypeTest.php Class Class source
  Plain text file FloatCompareTest.php Class Class source
  Plain text file FloatEqualsTest.php Class Class source

  Files folder image Files  /  tests  /  Types  /  Int  
File Role Description
  Plain text file CheckValueZeroTest.php Class Class source
  Plain text file ConvertValueTest.php Class Class source
  Plain text file CreateTypeTest.php Class Class source
  Plain text file IntCompareTest.php Class Class source
  Plain text file IntEqualsTest.php Class Class source

  Files folder image Files  /  tests  /  Types  /  Number  
File Role Description
  Plain text file CreateTypeTest.php Class Class source

  Files folder image Files  /  tests  /  Types  /  String  
File Role Description
  Plain text file CheckValueEmptyTest.php Class Class source
  Plain text file CreateTypeTest.php Class Class source
  Plain text file StringArrayAccessTest.php Class Class source
  Plain text file StringCompareTest.php Class Class source
  Plain text file StringEqualsTest.php Class Class source

Download Download all files: php-scalar-objects.tar.gz php-scalar-objects.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.