PHPackages                             hostarium/libcpmove - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. hostarium/libcpmove

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

hostarium/libcpmove
===================

A library for parsing information from a cPanel cpmove file

0.2.1(6y ago)110MPL-2.0PHP

Since Feb 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hostarium/libcpmove)[ Packagist](https://packagist.org/packages/hostarium/libcpmove)[ RSS](/packages/hostarium-libcpmove/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

libcpmove - A simple cpmove file parsing library
================================================

[](#libcpmove---a-simple-cpmove-file-parsing-library)

This library allows you to easily parse a cpmove archive file and retrieve details from it, such as the list of domains associated with the account. A cpmove file is the file generated by cPanel's backup wizard.

Install
-------

[](#install)

Use composer: `composer require hostarium\libcpmove`

Usage
-----

[](#usage)

To use simply create a new `Hostarium\CPMove` object, providing the path to your cpmove file

`$cp = new Hostarium\CPMove('/path/to/backup-user.tar.gz');`

Functions
---------

[](#functions)

All functions, including the constructor, throw `Hostarium\HostariumException` on failure.

`getDomains(bool $mainOnly = false)`
getDomains() will return either an array containing the following keys:

- Main Domain (main\_domain)
- Addon Domains (addon\_domains)
- Parked Domains (parked\_domains)
- Subdomains (sub\_domains)

or a string of the main domain if $mainOnly is set to true

`getSQLDatabases()`
getSQLDatabases() will return an array of mySQL databases, or an empty array if no databases are found in the archive

`getHomePath()`
getHomePath() will return a string containing the absolute path to the account's home directory, minus a trailing slash

`getMailboxes()`
getMailboxes() will return an array of mailboxes, or an empty array if no mailboxes are found in the archive

License
-------

[](#license)

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. Please see [LICENSE](./LICENSE) and [NOTICE](./NOTICE) for more information

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2328d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60993734?v=4)[Hostarium](/maintainers/hostarium)[@hostarium](https://github.com/hostarium)

---

Top Contributors

[![hostarium](https://avatars.githubusercontent.com/u/60993734?v=4)](https://github.com/hostarium "hostarium (5 commits)")

### Embed Badge

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

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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