https://github.com/ludovicm67/php-strings
Some useful functions for working with strings
https://github.com/ludovicm67/php-strings
camelcase composer composer-package ludovicm67 php php-library php8 string strings
Last synced: 4 months ago
JSON representation
Some useful functions for working with strings
- Host: GitHub
- URL: https://github.com/ludovicm67/php-strings
- Owner: ludovicm67
- License: mit
- Created: 2017-09-27T08:58:25.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T10:46:10.000Z (5 months ago)
- Last Synced: 2025-07-01T00:53:00.726Z (4 months ago)
- Topics: camelcase, composer, composer-package, ludovicm67, php, php-library, php8, string, strings
- Language: PHP
- Homepage: https://packagist.org/packages/ludovicm67/strings#dev-main
- Size: 450 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Strings
> Some useful functions for working with strings
[](https://packagist.org/packages/ludovicm67/strings)
[](https://packagist.org/packages/ludovicm67/strings)
[](https://coveralls.io/github/ludovicm67/php-strings?branch=main)
## Installation
Just run the following command: `composer require ludovicm67/strings`
to add it to your PHP project!
## Getting started
If you installed using composer, you can now create a file with the following code:
```php
bold");
// will display: test& ""~ "@éa/-âå€ÊÂøÊ±æ€ûýþ<b>bold</b>
```
### get a string from camelCase
Using `Strings::fromCamelCase("myString")` (_will return: `my-string`_).
Example:
```php
echo Strings::fromCamelCase('testFromCamelCase');
// will display: test-from-camel-case
```
### transform a string to camelCase
Using `Strings::toCamelCase("my-string")` (_will return: `myString`_).
Example:
```php
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 .