2017 © Pedro Peláez
 

library hifi-api

The official HiFi CMS API component for PHP

image

nmcteam/hifi-api

The official HiFi CMS API component for PHP

  • Thursday, January 22, 2015
  • by codeguy
  • Repository
  • 6 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HiFi CMS API component for PHP

This is the official HiFi CMS API component for PHP. It lets you fetch, put, and delete HiFi CMS website content from a remote destination., (*1)

Install

Install the HiFi CMS API component with Composer:, (*2)

composer require nmcteam/hifi-api

Usage

<?php
$hifi = new \Hifi\Api('www.example.com', 'username', 'password');

// Fetch content
$hits = $hifi->get([
    'type' => 'page'
]);
foreach ($hits as $hit) {
    echo $hit->title;
}

// Create or update content
$hifi->post([
    [
        'type' => 'page',
        'title' => 'New page',
        'content' => 'Content goes here',
        'parent' => 'a24c85d34ce9437bbfc9db696ccee814'
    ]
]);

// Delete content
$hifi->delete([
    [
        'id' => 'a24c85d34ce9437bbfc9db696ccee814'
    ]
]);

Author

Josh Lockhart josh@newmediacampaigns.com, (*3)

License

MIT Public License, (*4)

Copyright 2015, New Media Campaigns. All rights reserved., (*5)

The Versions

22/01 2015

dev-master

9999999-dev http://www.newmediacampaigns.com

The official HiFi CMS API component for PHP

  Sources   Download

MIT

The Requires

 

api cms hifi

22/01 2015

1.0.0

1.0.0.0 http://www.newmediacampaigns.com

The official HiFi CMS API component for PHP

  Sources   Download

MIT

The Requires

 

api cms hifi