All Projects → coduo → Php To String

coduo / Php To String

Licence: mit
Cast any php value into a string

Labels

Projects that are alternatives of or similar to Php To String

Analysis
A tool helping you to extract useful information from strings.
Stars: ✭ 118 (-46.12%)
Mutual labels:  string
String Inflection
underscore -> UPCASE -> CamelCase conversion of names
Stars: ✭ 157 (-28.31%)
Mutual labels:  string
Printj
📜 sprintf for JS
Stars: ✭ 182 (-16.89%)
Mutual labels:  string
Croc
Swift emoji string parsing library
Stars: ✭ 124 (-43.38%)
Mutual labels:  string
Ssf
📝 Spreadsheet Number Formatter
Stars: ✭ 139 (-36.53%)
Mutual labels:  string
Voca rs
Voca_rs is the ultimate Rust string library inspired by Voca.js, string.py and Inflector, implemented as independent functions and on Foreign Types (String and str).
Stars: ✭ 167 (-23.74%)
Mutual labels:  string
Strman Java
A Java 8 string manipulation library.
Stars: ✭ 1,362 (+521.92%)
Mutual labels:  string
Blitz
Android Library: Set self-updating string with relative time in TextView (e.g. 5 minutes ago)
Stars: ✭ 217 (-0.91%)
Mutual labels:  string
Dart Basic Utils
A dart package for many helper methods fitting common situations
Stars: ✭ 153 (-30.14%)
Mutual labels:  string
Libchef
🍀 c++ standalone header-only basic library. || c++头文件实现无第三方依赖基础库
Stars: ✭ 178 (-18.72%)
Mutual labels:  string
Sty
String styling for your terminal.
Stars: ✭ 129 (-41.1%)
Mutual labels:  string
Validatetor
Android library for fast and simple string validation
Stars: ✭ 136 (-37.9%)
Mutual labels:  string
Algo Tree
Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
Stars: ✭ 166 (-24.2%)
Mutual labels:  string
Htmlstring
Escape and unescape HTML entities in Swift
Stars: ✭ 119 (-45.66%)
Mutual labels:  string
Str
A fast, solid and strong typed string manipulation library with multibyte support
Stars: ✭ 199 (-9.13%)
Mutual labels:  string
Strtk
C++ String Toolkit Library
Stars: ✭ 113 (-48.4%)
Mutual labels:  string
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (-26.03%)
Mutual labels:  string
Codejam
Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
Stars: ✭ 217 (-0.91%)
Mutual labels:  string
Util
A collection of useful utility functions
Stars: ✭ 201 (-8.22%)
Mutual labels:  string
Strman
🏗A Javascript string manipulation library.
Stars: ✭ 2,021 (+822.83%)
Mutual labels:  string

PHP To String

Simple library that converts PHP values into strings.

Status:

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Simple library that allows you to cast any php value into string

Installation

composer require coduo/php-to-string

Usage

Supported types:

  • string
  • integer
  • float/double
  • object
  • callable
  • array
  • resource
use Coduo\ToString\StringConverter;

$double = new StringConverter(1.12312);
echo $double; // "1.12312"

$datetime = new StringConverter(new \DateTime());
echo $datetime; // "\DateTime"

$array = new StringConverter(array('foo', 'bar', 'baz'));
echo $array; // "Array(3)"

$res = fopen(sys_get_temp_dir() . "/foo", "w");
$resource = new StringConverter($res);
echo $resource; // "Resource(stream)"

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].