PHPackages                             olssonm/deploy - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. olssonm/deploy

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

olssonm/deploy
==============

Mark app as deployed and check when the last deployment occured.

v1.2(7y ago)456MITPHPPHP &gt;=7.0

Since Dec 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/olssonm/deploy)[ Packagist](https://packagist.org/packages/olssonm/deploy)[ Docs](https://github.com/olssonm/deploy)[ RSS](/packages/olssonm-deploy/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

Deploy
======

[](#deploy)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f046d2174155e66e7930aa168dfb9ffce06581d855ce53bc2a5b1ac95c6b47db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6c73736f6e6d2f6465706c6f792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/olssonm/deploy)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7a202a7386a336774736054352e5c1681f577fea700057b6f2f2ac5c720f69e4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f6c73736f6e6d2f6465706c6f792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/olssonm/deploy)

---

### ⚠️ This project is abandoned!

[](#️-this-project-is-abandoned)

Due to low usage this project is currently abandoned and hasn't been updated since Laravel 5.2.

---

A simple Laravel-package to write a deploy file to your storage path. This file can then be used to check when the last deploy occurred. Useful for both debugging purposes and if you need to keep track of builds, updates etc.

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

[](#installation)

```
$ composer require "olssonm/deploy:^1.0"
```

Only tested for Laravel &gt;= 5.5 but should work with any version of Laravel higher than 5.1. This package does require PHP &gt;= 7.0 however.

The package will be auto-discovered in Laravel &gt;= 5.5, else you can add it to your providers array (`config/app.php`):

```
'providers' => [
    Olssonm\Deploy\ServiceProvider::class
]
```

Usage
-----

[](#usage)

`olssonm\deploy` comes with a set of Artisan-command that you can use straight out of the box:

#### deploy:make

[](#deploymake)

```
$ php artisan deploy:make
// Deployed @ 2017-12-02 09:22:11
```

Writes the deployment-file for inspection and timekeeping. Per default the file is located in your `storagepath/app/deploy.txt`.

#### deploy:when

[](#deploywhen)

```
$ php artisan deploy:when
// Last deploy occurred @ 2017-12-02 09:22:11
```

Displays the time and date of the last deploy.

#### In app

[](#in-app)

You can also use the `Olssonm\Deploy\Deploy`-class for other more custom functions.

```
use Olssonm\Deploy\Deploy;

$deploy = new \Olssonm\Deploy\Deploy();
$deploy->make(); // Writes "now" as the deployment time
$deploy->when(); // Retrieves the last deployment time as a Carbon-instance
```

The class is also available for dependency injection:

```
use Olssonm\Deploy\Deploy;

public function when(Deploy $deploy)
{
    return $deploy->when();
}
```

Or via the facade (register `Olssonm\Deploy\Facades\Deploy::class` in your `aliases`-array) or app singleton;

```
app('deploy')->when()->format('Y-m-d'); // App singleton
Deploy::when()->format('Y-m-d'); // Via an alias
```

Pro tip: if you are using a custom deploy routine where you run `composer install` you can add `php artisan deploy:make` to your list of `post-install-cmd`-commands to automatically fire the command:

```
"scripts": {
    "post-install-cmd": [
        "php artisan deploy:make"
    ]
}
```

Testing
-------

[](#testing)

```
$ composer test
```

or

```
$ phpunit
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

© 2018 [Marcus Olsson](https://marcusolsson.me).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~140 days

Total

3

Last Release

2800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74a309aadadeae81baef2394d37375673d03f11133b28a831a30825361d1d68c?d=identicon)[olssonm](/maintainers/olssonm)

---

Top Contributors

[![olssonm](https://avatars.githubusercontent.com/u/907114?v=4)](https://github.com/olssonm "olssonm (14 commits)")

---

Tags

deploymentlaravellaravel-5-packagelaravel5laravel 5deploybuildolssonm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/olssonm-deploy/health.svg)

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

###  Alternatives

[ngmy/webloyer

Webloyer is a Web UI for managing Deployer deployments

2181.1k](/packages/ngmy-webloyer)[enygma/composerclean

An additional command for Composer that removes configured files/directory

181.8k](/packages/enygma-composerclean)

PHPackages © 2026

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