PHPackages                             tenetup/compression - 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. tenetup/compression

ActiveLibrary

tenetup/compression
===================

this package use for compress your image

133PHP

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mbehzad-bhz/tntCompression)[ Packagist](https://packagist.org/packages/tenetup/compression)[ RSS](/packages/tenetup-compression/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TenetUp-Compression
===================

[](#tenetup-compression)

with this package you can easily compress your image file (free) No quality loss

> **NOTE:** These instructions are for the latest version of Laravel.

[![License](https://camo.githubusercontent.com/eb790dd77dcf7d5015e6b6411db11494914cd58838fcd04d68c2f3f2f8377023/687474703a2f2f706f7365722e707567782e6f72672f74656e657475702f7a6172696e70616c2f6c6963656e7365)](https://packagist.org/packages/tenetup/zarinpal)

- [Installation](#installation)
- [Example](#Request)
- [Copyright and License](#copyright-and-license)

[![JetBrains](https://camo.githubusercontent.com/68371698a9d5ad6989b69158e7c06e14005262305f6037b1d98402802e5bc857/68747470733a2f2f74656e657475702e636f6d2f74656e657475702e706e67)](https://tenetup.com)

Installation
------------

[](#installation)

1. Install the package via Composer:

    ```
    $ composer require tenetup/compression
    ```
2. Register The package in your config/app.php

    A. set in Providers -&gt; TenetUp\\Compression\\CompressionServiceProvider::class,

    B. set in Aliases -&gt; 'Compression' =&gt; \\TenetUp\\Compression\\CompressionFacade::class,

Example
-------

[](#example)

```
    $filename = storage_path('app/public/1.jpeg');
    $result = Compression::compressImage($filename);
    $content = file_get_contents($result->optimizeFile);
    Storage::disk('public')->put('1.jpeg', $content);
```

> we just send your local image file after that you can save where you like

sample response

```
{
  "data": null,
  "message": "success upload",
  "error": false,
  "optimizeFile": "http://compression.tenetup.com/showFile?filename=1.jpeg"
}
```

Copyright and License
---------------------

[](#copyright-and-license)

[tenetup-Compression](https://github.com/mbehzad-bhz/tntCompression)was written by [majid behzadnasab](https://github.com/mbehzad-bhz) , [pooria noruzi](https://github.com/pooria-noruzi) and is released under the [MIT License](LICENSE.md).

Copyright (c) 2021 TenetUp Company

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5d314f344a1152e5a27f68735e03374355161f8cbd16ec4a47f49ffa39dec3e?d=identicon)[tntlearn](/maintainers/tntlearn)

---

Top Contributors

[![mbehzad-bhz](https://avatars.githubusercontent.com/u/22252603?v=4)](https://github.com/mbehzad-bhz "mbehzad-bhz (11 commits)")

### Embed Badge

![Health badge](/badges/tenetup-compression/health.svg)

```
[![Health](https://phpackages.com/badges/tenetup-compression/health.svg)](https://phpackages.com/packages/tenetup-compression)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
