https://github.com/quickshiftin/lzw-ext
Native LZW encoding and decoding for PHP
https://github.com/quickshiftin/lzw-ext
extension lzw php
Last synced: about 2 months ago
JSON representation
Native LZW encoding and decoding for PHP
- Host: GitHub
- URL: https://github.com/quickshiftin/lzw-ext
- Owner: quickshiftin
- Created: 2016-02-18T05:03:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-18T14:28:02.000Z (over 9 years ago)
- Last Synced: 2025-02-15T06:16:53.314Z (4 months ago)
- Topics: extension, lzw, php
- Language: C
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lzw-ext
Native LZW encoding and decoding for PHPWARNING: This is currently an alpha release.
Overview
--------These functions use the LZW implementation from https://github.com/vapier/ncompress
```
/**
* Compress $inputPath file using LZW compression.
* Write the compressed output to $outputPath.
*/
bool function lzw_compress_file($inputPath, $outputPath);/**
* Decompress $outputPath file using LZW compression.
* Write the decompressed file to $outputPath.
*/
bool function lzw_decompress_file($inputPath, $outputPath);
```Installation
------------Installation is the same as any PHP extension
* Download the source
* `cd` into the unpacked source directory
* `phpize`
* `./configure --enable-lzw`
* `make`
* `sudo make install`