PHPackages                             yk/laravel-archive - 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. yk/laravel-archive

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

yk/laravel-archive
==================

A Laravel archive example.

1.0.1(9y ago)026GPLv2PHPPHP &gt;=5.6.4

Since Jan 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yassine-khachlek/laravel-archive)[ Packagist](https://packagist.org/packages/yk/laravel-archive)[ Docs](https://github.com/yassine-khachlek/laravel-archive)[ RSS](/packages/yk-laravel-archive/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

laravel-archive
===============

[](#laravel-archive)

This laravel package simplify the archives creation to make it done in one line of code. Compress any folder recursively in a .tar.gz file.

Add the use statement in top of your script:

```
use Yk\LaravelArchive\Archive;
```

To compress any folder just do:

```
Archive::create($filename, $source);
```

Note
====

[](#note)

The package will select the compression type based on the destination file extension, and for the moment it support only .tar.gz compression. So the destination filename parameter should include .tar.gz extension.

You may miss some folders inside the created archive, you should know that empty folders are not included.

TODO
----

[](#todo)

1. add support for multiple compression types
2. include Hidden files

License
-------

[](#license)

### GPLv2

[](#gplv2)

Copyright (c) 2016 Yassine Khachlek

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3443d ago

Major Versions

0.0.0 → 1.02017-01-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5513479?v=4)[Yassine Khachlek](/maintainers/yassine-khachlek)[@yassine-khachlek](https://github.com/yassine-khachlek)

---

Top Contributors

[![yassine-khachlek](https://avatars.githubusercontent.com/u/5513479?v=4)](https://github.com/yassine-khachlek "yassine-khachlek (1 commits)")

---

Tags

laravelarchiveexample

### Embed Badge

![Health badge](/badges/yk-laravel-archive/health.svg)

```
[![Health](https://phpackages.com/badges/yk-laravel-archive/health.svg)](https://phpackages.com/packages/yk-laravel-archive)
```

###  Alternatives

[entrepreneur-interet-general/bulletins

Bulletins is a simple weekly retrospective tool for multiple projects or teams

122.6k](/packages/entrepreneur-interet-general-bulletins)

PHPackages © 2026

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