PHPackages                             nodify/php-client - 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. nodify/php-client

ActiveLibrary

nodify/php-client
=================

Official PHP client for Nodify Headless CMS

v1.0.0(1mo ago)01↓100%MITPHPPHP &gt;=8.0

Since Mar 16Pushed 1mo agoCompare

[ Source](https://github.com/AZIRARM/nodify-php-client)[ Packagist](https://packagist.org/packages/nodify/php-client)[ RSS](/packages/nodify-php-client/feed)WikiDiscussions main Synced 1mo ago

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

Nodify PHP Client
=================

[](#nodify-php-client)

**Official PHP client for Nodify Headless CMS**

[![Packagist Version](https://camo.githubusercontent.com/9ddde386d20c56e8cf01c52aba247b7cd2deec49783eb428d2640ddc2fac28fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f646966792f7068702d636c69656e74)](https://packagist.org/packages/nodify/php-client)[![PHP Version Require](https://camo.githubusercontent.com/fb1e3782fec6af095c8062b5c3c46ae2532e23c7e430e670b91c1416f09d3a60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6f646966792f7068702d636c69656e74)](https://packagist.org/packages/nodify/php-client)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

A powerful PHP client built with Guzzle to interact with your Nodify instance, enabling you to manage content, nodes, translations, and more programmatically.

📋 Prerequisites
---------------

[](#-prerequisites)

Before using this client, you need access to a **Nodify Headless CMS** instance. Nodify is a powerful, multilingual headless CMS that delivers content through APIs to any channel (websites, mobile apps, IoT, etc.).

### Option 1: Use the Public Demo (For Testing)

[](#option-1-use-the-public-demo-for-testing)

You can test the client against the public Nodify demo instance:

- **Demo URL:** `https://nodify-core.azirar.ovh`
- **Credentials:**
- Username: `admin`
- Password: `Admin13579++`

> ⚠️ The demo server is a shared environment and may be reset at any time. It is accessible daily, typically from **10:00 AM to 12:00 AM (UTC+1)**.

### Option 2: Run Nodify Locally with Docker (Recommended for Development)

[](#option-2-run-nodify-locally-with-docker-recommended-for-development)

You can run your own instance of Nodify using Docker Compose. You have two choices depending on whether you have existing MongoDB and Redis instances.

#### **A. Using External MongoDB &amp; Redis**

[](#a-using-external-mongodb--redis)

If you already have MongoDB and Redis running, use this `docker-compose.yml`:

```
services:
  nodify-core:
    image: azirar/nodify-core:latest
    environment:
      MONGO_URL: "mongodb://your-mongo-host:27017/nodify" # Replace with your Mongo URL
      ADMIN_PWD: "YourAdminPassword"                     # Replace with your admin password
      API_URL: "http://nodify-api:1080"                   # Internal URL for the API service
      TZ: "${TZ:-Europe/Paris}"
      REDIS_URL: "redis://your-redis-host:6379"          # Replace with your Redis URL
      JAVA_OPTS: "-Xmx768m -Xms384m"
    ports:
      - "7804:8080"

  nodify-api:
    image: azirar/nodify-api:latest
    environment:
      MONGO_URL: "mongodb://your-mongo-host:27017/nodify" # Replace with your Mongo URL
      TZ: "${TZ:-Europe/Paris}"
      REDIS_URL: "redis://your-redis-host:6379"          # Replace with your Redis URL
      JAVA_OPTS: "-Xmx512m -Xms256m"
    ports:
      - "7805:1080"

  nodify-ui:
    image: azirar/nodify-ui:latest
    depends_on:
      - nodify-core
      - nodify-api
    ports:
      - "7821:80"
    environment:
      CORE_URL: "http://nodify-core:8080"
      API_URL: "http://nodify-api:1080"
```

#### **B. Using Dockerized MongoDB &amp; Redis (All-in-One)**

[](#b-using-dockerized-mongodb--redis-all-in-one)

If you don't have existing databases, this setup will create everything together:

```
services:
  mongo:
    image: mongo:latest
    volumes:
      - mongo-data:/data/db
      - mongo-config:/data/configdb
    ports:
      - "27017:27017"

  redis:
    image: redis:latest
    ports:
      - "6379:6379"

  nodify-core:
    image: azirar/nodify-core:latest
    depends_on:
      - mongo
      - redis
    environment:
      MONGO_URL: "mongodb://mongo:27017/nodify"
      ADMIN_PWD: "Admin123"
      API_URL: "http://nodify-api:1080"
      TZ: "${TZ:-Europe/Paris}"
      REDIS_URL: "redis://redis:6379"
      JAVA_OPTS: "-Xmx768m -Xms384m"
    ports:
      - "7804:8080"

  nodify-api:
    image: azirar/nodify-api:latest
    depends_on:
      - mongo
      - redis
    environment:
      MONGO_URL: "mongodb://mongo:27017/nodify"
      TZ: "${TZ:-Europe/Paris}"
      REDIS_URL: "redis://redis:6379"
      JAVA_OPTS: "-Xmx512m -Xms256m"
    ports:
      - "7805:1080"

  nodify-ui:
    image: azirar/nodify-ui:latest
    depends_on:
      - nodify-core
      - nodify-api
    ports:
      - "7821:80"
    environment:
      CORE_URL: "http://nodify-core:8080"
      API_URL: "http://nodify-api:1080"

volumes:
  mongo-data:
  mongo-config:
```

To start the entire stack:

```
docker-compose up -d
```

After running either Docker setup, you can access the Nodify UI at `http://localhost:7821`. The backend services will be available at the mapped ports.

📦 Installation
--------------

[](#-installation)

### Using Composer

[](#using-composer)

```
composer require nodify/php-client
```

### Manual installation (development)

[](#manual-installation-development)

```
git clone https://github.com/AZIRARM/nodify-clients.git
cd nodify-clients/php
composer install
```

🚀 Quick Start
-------------

[](#-quick-start)

Here's a simple example to get you started:

```
