SkillAgentSearch skills...

Phppowerpoint

A PHP library that makes it possible to create a presentation, add slides to it (including test and images), format them and more. The presentation can be exported as a PowerPoint 2007 (presentationML) or PHPPowerPoint Serialized Spreadsheet file.

Install / Use

/learn @Feudum/Phppowerpoint
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

phppowerpoint

Laravel PHPPowerpoint Bundle


PHPPowerpoint is a library written in PHP that create powerpoint presentations. No Windows operating system is needed for usage because the result are pptx files (Office Open XML) that can be opened by all major office software.


Installation

Run this command on the CLI:

php artisan bundle:install phppowerpoint

Registering the Bundle

Place the following code in application/bundles.php:

'phppowerpoint'    => array(
    'auto'        => true
)

Usage

$objPHPPowerPoint = new PHPPowerPoint();
	$currentSlide = $objPHPPowerPoint->getActiveSlide();
	$shape = $currentSlide->createDrawingShape();
	$shape = $currentSlide->createRichTextShape();
	$shape->setHeight(300);
	$shape->setWidth(600);
	$shape->setOffsetX(170);
	$shape->setOffsetY(180);
	$shape->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER );
	$textRun = $shape->createTextRun('Thank you for using PHPPowerPoint!');
	$textRun->getFont()->setBold(true);
	$textRun->getFont()->setSize(60);
	$textRun->getFont()->setColor( new PHPPowerPoint_Style_Color( 'FFC00000' ) );
	$objWriter = PHPPowerPoint_IOFactory::createWriter($objPHPPowerPoint, 'PowerPoint2007');
	$objWriter->save(str_replace('.php', '.pptx', __FILE__));

More info about PHPPowerPoint , visit : http://phppowerpoint.codeplex.com/

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated7y ago
Forks3

Languages

PHP

Security Score

55/100

Audited on Feb 19, 2019

No findings