vollbehr/php-reader-symfony 问题修复 & 功能扩展

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

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

vollbehr/php-reader-symfony

最新稳定版本:v2.0-rc1

Composer 安装命令:

composer require vollbehr/php-reader-symfony

包简介

Symfony bundle for vollbehr/php-reader.

README 文档

README

This bundle wires the vollbehr/php-reader file reader factory into the Symfony service container, giving you framework-native configuration and autoconfiguration support.

Installation

composer require vollbehr/php-reader-symfony-bundle

If you're using Symfony Flex the bundle will be enabled automatically. Otherwise, register it in your config/bundles.php:

return [
    // ...
    Vollbehr\Bridge\Symfony\PhpReaderBundle::class => ['all' => true],
];

Configuration

Override the default configuration by creating config/packages/php_reader.yaml:

php_reader:
  default_file_mode: 'rb'

You can access the factory directly from the container; this snippet mirrors the automated test harness:

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Vollbehr\Support\FileReaderFactory;

$container = new ContainerBuilder();
$container->loadFromExtension('php_reader', ['default_file_mode' => 'rb']);
$container->compile();

/** @var FileReaderFactory $factory */
$factory = $container->get(FileReaderFactory::class);
$reader  = $factory->open('/path/to/audio.mp3');

Versioning

Tag bundle releases in lockstep with vollbehr/php-reader so consumers can rely on compatible APIs across the ecosystem.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固