承接 technicalkumargaurav/ppt-exporter 相关项目开发

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

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

technicalkumargaurav/ppt-exporter

Composer 安装命令:

composer require technicalkumargaurav/ppt-exporter

包简介

Export tabular data to PowerPoint presentations

README 文档

README

A lightweight PHP library to export tabular data into PowerPoint presentations.

Features

  • Export arrays to PowerPoint (.pptx)
  • Add presentation title
  • Generate editable PowerPoint tables
  • Split large datasets across multiple slides
  • PSR-4 compliant
  • Built on PHPPresentation

Installation

composer require technicalkumargaurav/ppt-exporter

Usage

<?php

require 'vendor/autoload.php';

use Technicalkumargaurav\PptExporter\PptExporter;

$data = [
    ['Name', 'Age', 'City'],
    ['Gaurav', 30, 'Bhopal'],
    ['Rahul', 25, 'Delhi'],
];

PptExporter::make()
    ->title('Employee Report')
    ->table($data)
    ->save('employees.pptx');

Multi Slide Example

<?php

require 'vendor/autoload.php';

use Technicalkumargaurav\PptExporter\PptExporter;

$data = [
    ['Name', 'Age', 'City'],
];

for ($i = 1; $i <= 55; $i++) {
    $data[] = [
        'Employee ' . $i,
        rand(20, 50),
        'City ' . $i
    ];
}

PptExporter::make()
    ->title('Employee Report')
    ->rowsPerSlide(20)
    ->table($data)
    ->save('employees.pptx');

Output

  • Slide 1: Title + Rows 1-20
  • Slide 2: Title + Rows 21-40
  • Slide 3: Title + Remaining Rows

Requirements

  • PHP 8.1+
  • PHPPresentation 1.2+

Roadmap

  • Header styling
  • Auto column width
  • Excel to PPT export
  • Multiple tables per presentation
  • Charts support

License

MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-24