PHPackages                             alsalty/argocd-sdk - 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. [API Development](/categories/api)
4. /
5. alsalty/argocd-sdk

ActiveLibrary[API Development](/categories/api)

alsalty/argocd-sdk
==================

PHP library for Argo CD

1.0.0(1y ago)17MITPHPPHP &gt;=8

Since Aug 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mohamadalsalty/argocd-sdk)[ Packagist](https://packagist.org/packages/alsalty/argocd-sdk)[ RSS](/packages/alsalty-argocd-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Argo CD PHP SDK Library
=======================

[](#argo-cd-php-sdk-library)

This PHP SDK library provides an easy way to interact with Argo CD's API, allowing you to manage applications, clusters, and more.

Features
--------

[](#features)

- Authenticate with Argo CD API using username and password
- Manage applications with project and namespace filters
- Fetch information and names of applications

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

[](#installation)

### Using Composer

[](#using-composer)

You can install the library via Composer. Run the following command in your terminal:

```
composer require alsalty/argocd-sdk
```

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

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

use Alsalty\Argocd\Core\Auth;
use Alsalty\Argocd\Core\Managers\ApplicationsManager;

try {
    // Set your Argo CD API credentials
    $apiUrl = 'https://your-argocd-api-url';
    $username = 'your-username';
    $password = 'your-password';

    // Create an Auth instance and authenticate
    $auth = new Auth($apiUrl, $username, $password);
    $auth->authenticate();

    // Create an ApplicationsManager instance
    $appManager = new ApplicationsManager($auth);

    // Set projects and namespace filters
    $appManager->setProjects(['project1', 'project2']);
    $appManager->setAppNamespace('namespace1');

    // Fetch and print application names
    $applicationNames = $appManager->getApplicationsNames();
    print_r($applicationNames);

} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage();
}
```

### Filtering Applications

[](#filtering-applications)

You can filter applications by projects and namespaces:

- **Projects**: Set multiple projects to filter applications by those projects.
- **Namespace**: Set a namespace to filter applications by a specific namespace.

```
$appManager->setProjects(['project1', 'project2']);
$appManager->setAppNamespace('namespace1');
```

Configuration
-------------

[](#configuration)

You can configure the following parameters:

- **API URL**: The URL of your Argo CD API server.
- **Username**: Your Argo CD username.
- **Password**: Your Argo CD password.

Development
-----------

[](#development)

### Structure

[](#structure)

- **src/Core**: Contains core classes such as `Auth` and managers.
- **src/Helpers**: Contains helper classes like `Curl`.
- **tests**: Contains test cases.

Contributing
------------

[](#contributing)

Contributions are welcome!

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

644d ago

### Community

Maintainers

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

---

Top Contributors

[![mohamadsalty-dev](https://avatars.githubusercontent.com/u/240787662?v=4)](https://github.com/mohamadsalty-dev "mohamadsalty-dev (5 commits)")

---

Tags

devopsArgoCD

### Embed Badge

![Health badge](/badges/alsalty-argocd-sdk/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M451](/packages/google-gax)

PHPackages © 2026

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