Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"phpoffice/phppresentation": "dev-master" #127

Closed
kohloth opened this issue Jul 26, 2015 · 9 comments
Closed

"phpoffice/phppresentation": "dev-master" #127

kohloth opened this issue Jul 26, 2015 · 9 comments
Assignees
Milestone

Comments

@kohloth
Copy link

kohloth commented Jul 26, 2015

"phpoffice/phppresentation": "dev-master" doesn't work as a composer require.

Problem 1
- The requested package phpoffice/phppresentation could not be found in any version, there may be a typo in the package name.

@kohloth
Copy link
Author

kohloth commented Jul 26, 2015

Does anyone know what the actual composer require directive is?

@Progi1984
Copy link
Member

@kohloth

"phpoffice/phppresentation" is the next version of PHPPowerPoint (#25).

In the mean time, you can use "phpoffice/phppowerpoint".

@Progi1984 Progi1984 added this to the 0.5.0 milestone Jul 27, 2015
@Progi1984 Progi1984 modified the milestones: 0.5.0, Waiting For Answer Aug 3, 2015
@salil1987
Copy link

Hello,
I had the same error "Problem 1

  • The requested package phpoffice/phppresentation could not be found in any version, there may be a typo in the package name."

Then I used "phpoffice/phppowerpoint" but after the installation, your example shown on frontpage doesn't work, getting error that "Fatal error: Class 'PhpPresentation' not found ".

@alexlavr
Copy link

I have this issue too

PHP Fatal error:  Class 'PhpPresentation' not found in /Users/alexlavr/Projects/php-pptx/test1.php on line 11

$ cat composer.json 
{
    "require": {
       "phpoffice/phppresentation": "dev-master"
    }
}

@Progi1984
Copy link
Member

@alexlavr @salil1987 Have you got always the problem ?

@salil1987
Copy link

It got solved somehow, and worked out well, now I have implemented the library into joomla as an extension, you can create ppts and stuff.
Use "phpoffice/phppowerpoint" instead of "phpoffice/phppresentation"

@Progi1984
Copy link
Member

@alexlavr @salil1987

I just try this command :

composer require phpoffice/phppresentation:dev-master

or this one :

composer require "phpoffice/phppresentation" "dev-master"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing phpoffice/common (0.2.3)
    Loading from cache

  - Installing phpoffice/phppresentation (dev-master 464b206)
    Cloning 464b206f5de20a0df5e01b3028e7fbcc4989f77b

phpoffice/phppresentation suggests installing ext-gd2 (Required to add images)
Writing lock file
Generating autoload files

And ok, no problem.

After that, I try this code :

include 'vendor/autoload.php';

use PhpOffice\PhpPresentation\PhpPresentation;

$oPhpPresentation = new PhpPresentation();

And it was ok.

Have you all ok ?

@wowpages
Copy link

The Getting Started example (https:/PHPOffice/PHPPresentation) includes this line:

 use PhpOffice\PhpPresentation\PhpPowerpoint;

but that generates an error: Fatal error: Class 'PhpPresentation' not found...

The line in the example should be:

 use PhpOffice\PhpPresentation\PhpPresentation;

@Progi1984
Copy link
Member

Note for me : Improve documentation and search "PhpPowerpoint" in all the repository

@Progi1984 Progi1984 self-assigned this Jan 3, 2016
@Progi1984 Progi1984 modified the milestones: 0.6.0, Waiting For Answer Jan 21, 2016
Progi1984 added a commit to Progi1984/PHPPresentation that referenced this issue May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants