PHPackages                             netom/lz-string-php - 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. netom/lz-string-php

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

netom/lz-string-php
===================

PHP Class implementation of LZ-String javascript.

v1.3.1(4y ago)04.4k—5%2MITPHPPHP &gt;=7.2.0

Since Feb 25Pushed 4y agoCompare

[ Source](https://github.com/netom/lz-string-php)[ Packagist](https://packagist.org/packages/netom/lz-string-php)[ RSS](/packages/netom-lz-string-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (2)

lz-string-php
=============

[](#lz-string-php)

lz-string is designed to fulfill the need of storing large amounts of data in localStorage, specifically on mobile devices. Due to the limitation of a maximum of 5MB in the local storage one possible solution is to compress the data right before storing it locally. In case you want to transfer your stored data from / to a php service you can use this library to (en)code the data.

This code is originally based on the LZ-String javascript version found here: and is a 1:1 copy/translation into php.

Usage
-----

[](#usage)

```
