PHPackages                             aydin-hassan/strip-indent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aydin-hassan/strip-indent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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\]

1.0.0(11y ago)3571MITPHPPHP &gt;=5.4

Since Oct 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/AydinHassan/stripIndent)[ Packagist](https://packagist.org/packages/aydin-hassan/strip-indent)[ RSS](/packages/aydin-hassan-strip-indent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

StripIndent
===========

[](#stripindent)

[![Build Status](https://camo.githubusercontent.com/d2027796c04fddc9744b2a255473612d3aec0a656705165754b40826477a9cca/68747470733a2f2f7472617669732d63692e6f72672f417964696e48617373616e2f7374726970496e64656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AydinHassan/stripIndent)[![Coverage Status](https://camo.githubusercontent.com/467f8701ad164243fb7af2a59ffdc72abdfd46a8213acbbf52940855c1300998/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f417964696e48617373616e2f7374726970496e64656e742e737667)](https://coveralls.io/r/AydinHassan/stripIndent)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9936b5a148b322490398363d5aa1473c62d100009b1a996c55ebbfe95ed305eb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f417964696e48617373616e2f7374726970496e64656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AydinHassan/stripIndent/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b66715d2755e7aa4cbab69a2c00c37f9bc3ff38dd447531d16619d603b4d6e90/68747470733a2f2f706f7365722e707567782e6f72672f617964696e2d68617373616e2f73747269702d696e64656e742f762f737461626c652e737667)](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
------------

[](#installation)

### Composer

[](#composer)

```
composer require aydin-hassan/strip-indent
```

Usage
-----

[](#usage)

```
