nmcteam/hifi-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nmcteam/hifi-api

最新稳定版本:1.0.0

Composer 安装命令:

composer require nmcteam/hifi-api

包简介

The official HiFi CMS API component for PHP

README 文档

README

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.

Install

Install the HiFi CMS API component with Composer:

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

License

MIT Public License

Copyright

Copyright 2015, New Media Campaigns. All rights reserved.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-22