PHPackages                             infiniityr/alfresco-php-api - 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. infiniityr/alfresco-php-api

ActiveLibrary[API Development](/categories/api)

infiniityr/alfresco-php-api
===========================

v0.0.1(7y ago)2104PHPCI failing

Since Jan 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/infiniityr/alfresco-php-api)[ Packagist](https://packagist.org/packages/infiniityr/alfresco-php-api)[ RSS](/packages/infiniityr-alfresco-php-api/feed)WikiDiscussions master Synced yesterday

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

ALFRESCO-PHP-API
================

[](#alfresco-php-api)

**NON OFFICIAL PACKAGE**

This package is based on the official [alfresco-js-api](https://github.com/Alfresco/alfresco-js-api) package.

Classes dealing with the Alfresco 5.2+ API for PHP. Most of the functionalities of the original package are present.

In order to have all the auto-suggestion, try to work with an IDE which understand the properties [`property-read`](http://docs.phpdoc.org/references/phpdoc/tags/property-read.html) and [`method`](http://docs.phpdoc.org/references/phpdoc/tags/method.html) of the PHPDoc. I advise you to use PHPStorm or Intellij Idea which natively understand those properties.

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

[](#installation)

```
composer require infiniityr/alfresco-php-api:dev-master
```

Usage
-----

[](#usage)

Initialize the class `AlfrescoApi` with the configuration array.

```
$config = [
    'hostEcm' => 'http://localhost:8080',
    //'context' => 'alfresco',
    //'disableCsrf' => true
];
$alfrescoApi = new AlfrescoApi($config);
```

Then you can login to Alfresco.

```
$alfrescoApi->login('login', 'password')->wait();
```

After that, just call the APIs as presented in the documentation.

```
//Get all sites
$this->alfrescoApi->core->getSites()
    ->then(function(SitePaging $sites) {
        foreach ($sites->list->entries as $entry) {
            print_r(json_encode($entry) . "\n");
        }
    })->wait();

//Create a site
$siteBody = new SiteBody('Site Test PHP');
$siteBody->id = 'new_site_id';
$this->alfrescoApi->core->createSite($siteBody)
    ->then(function($data) {
        print_r("Site CREATED\n");
    })->wait();
```

Todo
----

[](#todo)

A lot of stuff is still in progress.

- Unit tests of all models
- Unit tests of all apis
- Include all Activiti APIs
- Include Oauth2 Authentication

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2730d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/253dadbeafbc52d00d88b6ff6cb1f441a24cb0aeac00d6d3212c98148b53b9ed?d=identicon)[infiniityr](/maintainers/infiniityr)

---

Top Contributors

[![infiniityr](https://avatars.githubusercontent.com/u/15141959?v=4)](https://github.com/infiniityr "infiniityr (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/infiniityr-alfresco-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/infiniityr-alfresco-php-api/health.svg)](https://phpackages.com/packages/infiniityr-alfresco-php-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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