Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddrv/php-lorem-ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
https://github.com/ddrv/php-lorem-ipsum
composer ipsum lorem lorem-ipsum lorem-ipsum-generator php
Last synced: 2 days ago
JSON representation
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- Host: GitHub
- URL: https://github.com/ddrv/php-lorem-ipsum
- Owner: ddrv
- License: mit
- Created: 2017-12-19T02:57:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-29T05:43:22.000Z (almost 7 years ago)
- Last Synced: 2024-04-02T04:07:12.135Z (8 months ago)
- Topics: composer, ipsum, lorem, lorem-ipsum, lorem-ipsum-generator, php
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lorem Ipsum
===========Install
-------```
composer require lorem/ipsum
```Usage
-----```php
addParagraph(2)
->addParagraph(8)
->wrapAll('article', array('class'=>'lorem-ipsum'))
->wrapParagraph(1, 'h1')
->wrapParagraph(2, 'p', array('class'=>'lorem-ipsum'))
->wrapWord(2, 6, 'span')
->wrapWords(2, 1, 3, 'a', array('href'=>'https://packagist.org/packages/lorem/ipsum'));
echo $loremIpsum;
```Result
------```html
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit
```
Usage with your text
--------------------```php