承接 decodelabs/iota 相关项目开发

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

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

decodelabs/iota

最新稳定版本:v0.3.2

Composer 安装命令:

composer require decodelabs/iota

包简介

Discrete, dependable generated code repository

README 文档

README

PHP from Packagist Latest Version Total Downloads GitHub Workflow Status PHPStan License

Discrete, dependable generated code repository

Iota provides a simple mechanism for storing, retrieving and loading generated code.

Installation

This package requires PHP 8.4 or higher.

Install via Composer:

composer require decodelabs/iota

Usage

Load a repository:

use DecodeLabs\Iota;

// Get service
$iota = new Iota();

// Load manually
$repo = $iota->load('name', '/path/to/repo');

// Load an app-level repository only writable in dev mode
$repo = $iota->loadStatic('name');

// Load a writable app-level repository
$repo = $iota->loadDynamic('name');

Then you can store and retrieve code:

// Store anything
$repo->store(
    'key',
    <<<'PHP'
    <?php
    return 'Hello, world!';
    PHP
);

// Retrieve code
$code = $repo->fetch('key');

// Include quietly
$repo->include('key');

// Include and return
$value = $repo->Return('key'); // 'Hello, world!'

Licensing

Iota is licensed under the MIT License. See LICENSE for the full license text.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-06