Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Installation & Use without composer possible? #82

Closed
flowdee opened this issue Jun 9, 2015 · 7 comments
Closed

Installation & Use without composer possible? #82

flowdee opened this issue Jun 9, 2015 · 7 comments

Comments

@flowdee
Copy link

flowdee commented Jun 9, 2015

Is it possible to install and use this library without composer? In fact I want to integrate this into a plugin and the old fashion way with an include/require would be best in my opinion.

Thought about something like:

require_once "lib/ApaiIO/ApaiIO.php";

use ApaiIO\Configuration\GenericConfiguration;
use ApaiIO\ApaiIO;

$conf = new GenericConfiguration();

$conf
    ->setCountry('com')
    ->setAccessKey('YOUR ACCESS KEY')
    ->setSecretKey('YOUR SECRET KEY')
    ->setAssociateTag('YOUR ASSOCIATE TAG');

$apaiIo = new ApaiIO($conf);
@kusflo
Copy link

kusflo commented Jun 11, 2015

I agree, can we use it without composer?

@Exeu
Copy link
Owner

Exeu commented Jun 11, 2015

Why it should not be possible?
Just include every singe file and you're done ;)

@Exeu Exeu closed this as completed Jun 11, 2015
@flowdee
Copy link
Author

flowdee commented Jun 11, 2015

Every single file? Isn't there a kind of loader file which can be included instead? would make sense and help a lot of ppl in my opinion.

@Exeu
Copy link
Owner

Exeu commented Jun 11, 2015

Yep but this file will not be included in this library. I'm sorry but you need to write such kind of file by yourself or using some more intelligent autload mechanisms instead.

Please have also a look here: http://php.net/manual/de/language.oop5.autoload.php
And of course (since the lib is PSR-Compliant) to http://www.php-fig.org/psr/psr-0/ and https://gist.github.com/jwage/221634

@flowdee
Copy link
Author

flowdee commented Jun 11, 2015

Why you don't want to share such a helpful file?

@Exeu
Copy link
Owner

Exeu commented Jun 12, 2015

I don't have such kind of file. Please see the links. There is ANY information you need to build this "file".

@Flaschenzug
Copy link

Hey there,

I tried to create an autoloader.php ... but without success.
What am I doing wrong ? Thanks for your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants