PHPackages                             lifecycle/lifecycle - 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. lifecycle/lifecycle

ActiveLibrary

lifecycle/lifecycle
===================

00[2 issues](https://github.com/TeamLifecycle/lifecycle-php/issues)PHP

Since Aug 13Pushed 10y ago7 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

lifecycle-php
=============

[](#lifecycle-php)

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

[](#installation)

### Using [Composer](https://getcomposer.org)

[](#using-composer)

To install lifecycle-php with Composer, just add the following to your `composer.json` file:

```
{
    "require": {
          "lifecycle/lifecycle" : "^0.0"
    }
}
```

or by running the following command:

```
composer require lifecycle/lifecycle
```

Composer installs autoloader at `./vendor/autoloader.php`. to include the library in your script, add:

```
require_once 'vendor/autoload.php';
```

If you use Symfony2, autoloader has to be detected automatically.

*You can see this library on [Packagist](https://packagist.org/packages/lifecycle/lifecycle).*

Usage
-----

[](#usage)

### Creating a Request

[](#creating-a-request)

So you're probably wondering how to use this library for quick and easy api calls to Lifecycle. Check out this example.

TO INITIALIZE:

```
lifecycle = new Lifecycle('YOUR_LIFECYCLE_API_KEY');
```

TO IDENTIFY:

```
lifecycle::identify('$params');  //check out the example params below.
```

TO TRACK:

```
lifecycle::track('$event_id, $unique_id');
```

```
//Example of params variable to use with identify call
$params = array( "unique_id" => "1234",
        		"first_name" => "Nathan",
        		"last_name" => "Mooney",
    			"email_address" => "someone@lifecycle.io",
        		"phone_number" => "12345678913")
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/984d7a692cb11a0b5fd05f310347d1bb77b3461a9574a332cb82707573cb326a?d=identicon)[lifecycle](/maintainers/lifecycle)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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