承接 saxulum/saxulum-console 相关项目开发

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

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

saxulum/saxulum-console

最新稳定版本:3.1.1

Composer 安装命令:

composer require saxulum/saxulum-console

包简介

Saxulum Console Provider

README 文档

README

works with plain silex-php

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality

Features

  • Add symfony console

Requirements

  • PHP 5.3+
  • Pimple 2.1+
  • Saxulum ClassFinder 1.0+
  • Symfony Console 2.3+
  • Symfony Finder 2.3+

Installation

Through Composer as saxulum/saxulum-console.

$container->register(new ConsoleProvider()); 

With translation cache (faster)

use Pimple\Container; use Saxulum\Console\Silex\Provider\ConsoleProvider; $container = new Container(); $container->register(new ConsoleProvider(), array( 'console.cache' => '/path/to/cache' )); 
  • debug == true: the cache file will be build at each load
  • debug == false: the cache file will be build if not exists, delete it if its out of sync

Without translation cache (slower)

use Pimple\Container; use Saxulum\Console\Silex\Provider\ConsoleProvider; $container = new Container(); $container->register(new ConsoleProvider()); 

Usage

Register a command

$container['console.commands'] = $container->extend('console.commands', function ($commands) use ($container) { $command = new SampleCommand; $command->setContainer($container); $commands[] = $command; return $commands; }); 

Register a path

One of their parent classes has to be: Saxulum\Console\Command\AbstractPimpleCommand

$container['console.command.paths'] = $container->extend('console.command.paths', function ($paths) { $paths[] = __DIR__ . '/../../Command'; return $paths; }); 

Run the console

$container['console']->run(); 

Copyright

统计信息

  • 总下载量: 55.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 9
  • 推荐数: 9

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固