2017 © Pedro Peláez
 

library strings

Some useful functions for working with strings

image

ludovicm67/strings

Some useful functions for working with strings

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Strings

Some useful functions for working with strings, (*1)

Latest Stable Version Total Downloads Coverage Status, (*2)

Installation

Just run the following command: composer require ludovicm67/strings to add it to your PHP project!, (*3)

Getting started

If you installed using composer, you can now create a file with the following code:, (*4)

<?php

// import here the composer autoloader
require('./vendor/autoload.php');

// use the namespace for this library
use ludovicm67\Strings\Strings;

clean strings

You can clean strings using the static method: Strings::clean("My string")., (*5)

Example:, (*6)

echo Strings::clean("test& ""~ "@éa/-âå€ÊÂøÊ±æ€ûýþ<b>bold</b>");
// will display: test&amp; &quot;&quot;~ &quot;@éa/-âå€ÊÂøÊ±æ€ûýþ&lt;b&gt;bold&lt;/b&gt;

get a string from camelCase

Using Strings::fromCamelCase("myString") (_will return: my-string_)., (*7)

Example:, (*8)

echo Strings::fromCamelCase('testFromCamelCase');
// will display: test-from-camel-case

transform a string to camelCase

Using Strings::toCamelCase("my-string") (_will return: myString_)., (*9)

Example:, (*10)

echo Strings::toCamelCase('test-to-camel-case');
// will display: testToCamelCase

Want to contribute?

Just fork, commit and open a pull-request. Or just open an issue here: https://github.com/ludovicm67/php-strings/issues ., (*11)

The Versions

02/10 2017

dev-master

9999999-dev

Some useful functions for working with strings

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

02/10 2017

v1.0

1.0.0.0

Some useful functions for working with strings

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires