2017 © Pedro Peláez
 

library word-wrap-helper

image

nexuslinkservices/word-wrap-helper

  • Friday, March 24, 2017
  • by nexuslinkservices
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Word Wrap Helper

Wraps a string to a given number of characters using a string break character., (*1)

Latest Version Software License Scrutinizer Code Quality Build Status, (*2)

Installation

If you use composer, you can add this package by running, (*3)

composer require galiteintechnologies/word-wrap-helper

Usage

Default values are $width = 75, $break = '\n' and $cut = false., (*4)

<?php

use WordWrapHelper\WordFormatter;

$wordFormatter = new WordFormatter();

$content = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.";

$result = $wordFormatter->wrap($content, 30, '-<br/>');

echo $result;

Output

Lorem Ipsum is simply dummy-<br/>text of the printing and-<br/>typesetting industry.

CONTRIBUTING:

Pull requests are always welcome., (*5)

The Versions

24/03 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

19/09 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services