Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aydinhassan/stripindent
A tiny PHP library for stripping indents from multi-line scripts
https://github.com/aydinhassan/stripindent
Last synced: about 1 month ago
JSON representation
A tiny PHP library for stripping indents from multi-line scripts
- Host: GitHub
- URL: https://github.com/aydinhassan/stripindent
- Owner: AydinHassan
- License: mit
- Created: 2014-10-13T20:48:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-13T21:35:38.000Z (about 10 years ago)
- Last Synced: 2024-10-03T05:08:26.716Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 145 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
StripIndent
===========
[![Build Status](https://travis-ci.org/AydinHassan/stripIndent.svg?branch=master)](https://travis-ci.org/AydinHassan/stripIndent)
[![Coverage Status](https://img.shields.io/coveralls/AydinHassan/stripIndent.svg)](https://coveralls.io/r/AydinHassan/stripIndent)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AydinHassan/stripIndent/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AydinHassan/stripIndent/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/aydin-hassan/strip-indent/v/stable.svg)](https://packagist.org/packages/aydin-hassan/strip-indent)A tiny library for stripping indents from multi-line scripts, inspired by: [sindresorhus/strip-indent](https://github.com/sindresorhus/strip-indent)
The indent amount is counted for the second row, (not the row containing the string declaration). This indent count is
removed from each line.Installation
------------### Composer
```shell
composer require aydin-hassan/strip-indent
```Usage
-----```php
';echo stripIndent($line);
/**
**/
```