承接 corny-phoenix/fipa-sl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

corny-phoenix/fipa-sl

最新稳定版本:0.1.4

Composer 安装命令:

composer require corny-phoenix/fipa-sl

包简介

PHP Library for serializing FIPA SL messages.

README 文档

README

Build Status Code Climate Scrutinizer Code Quality

Introduction

The Foundation for Intelligent Physical Agents (FIPA) is a group at IEEE which proposes a lot of standards in agent oriented software engineering (AOSE). One of those standards is the Semantic Language (SL) specification (FIPA00008).

This library adds serialization and unserialization support for SL-encoded objects.

Installation

Install it using Composer:

composer require corny-phoenix/fipa-sl 0.1.4

Basic Usage

<?php

include('vendor/autoload.php');

use CornyPhoenix\Fipa\Sl\Serializer\DefaultTupleSerializer;
use CornyPhoenix\Fipa\Sl\Context\DefaultTupleContext;
use CornyPhoenix\Fipa\Sl\Registry\DefaultTupleRegistry;

$registry = new DefaultTupleRegistry();
$context = DefaultTupleContext::getInstance();
$serializer = new DefaultTupleSerializer($context, $registry);

$frame = $serializer->unserialize('(frame "foo")');
var_dump($frame->getFrame()); // string(5) "frame"
var_dump($frame->getTerms()[0]->getValue()); // string(3) "foo"

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-15