00f100/fcphp-context 问题修复 & 功能扩展

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

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

00f100/fcphp-context

Composer 安装命令:

composer require 00f100/fcphp-context

包简介

Context for FcPhp

README 文档

README

Context to FcPhp Application. Autoload Context inside packages with cache using FcPhp Cache and FcPhp Autoload

Build Status codecov Total Downloads

How to install

Composer:

$ composer require 00f100/fcphp-context

or add in composer.json

{
	"require": {
		"00f100/fcphp-context": "*"
	}
}

How to use

<?php
/**
 * Construct instance of Context
 *
 * @param array $context Context to apply
 * @return void
 */
$context = new Context(array $context = []);

Example

<?php

use FcPhp\Context\Context;

$context = [
	'cache' => [
		'file' => 'tests/var/cache',
	]
];

$context = new Context($context);

// Print
// tests/var/cache
echo $context->get('cache.file');

Autoload, update Context and cache

<?php

use FcPhp\Context\Context;
use FcPhp\Autoload\Autoload;
use FcPhp\Cache\Facades\CacheFacade;

$context = [
	'cache' => [
		'file' => 'tests/var/cache',
	]
];

$context = new Context($context);

$vendorPath = 'vendor/*/*/config';
$autoload = new Autoload();
$cache = CacheFacade::getInstance('tests/var/cache');

$context->autoload($vendorPath, $autoload, $cache);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固