GithubHelp home page GithubHelp logo

Comments (6)

floriandotpy avatar floriandotpy commented on May 20, 2024

If you haven't used composer before, check it out: https://getcomposer.org/

Composer helps you manage your dependencies during development and will create everything you need for autoloading the PHP classes (no need for explicit requires anymore).

When you're actually deploying your code to your server, you will already include the installed dependencies. So the "installation" as mentioned in the README is not actually meant for that part of the process.

Hope that answers your questions.

from apai-io.

neatville avatar neatville commented on May 20, 2024

I get an error when I try to install it with composer. Both the composer.phar and the composer.json are in the same folder.
path:/var/www/html/apai-io$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package exeu/apai-io 1.0.0 could not be found.

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

This is what my composer.json file looks like.

{
"name": "exeu/apai-io",
"type": "library",
"description": "Amazon Product Advertising PHP Library",
"keywords": ["Amazon", "ECS", "Product Advertising", "SOAP", "REST", "Products"],
"homepage": "https://github.com/Exeu/apai-io",
"license": "Apache-2.0",
"authors": [
{
"name": "Jan Eichhorn",
"email": "[email protected]",
"role": "Maintainer"
},
{
"name": "Dejan Spasic",
"email": "[email protected]",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/Exeu/apai-io/issues"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"ext-curl": ""
},
"require-dev": {
"phpunit/phpunit": "4.3.
"
},
"autoload": {
"psr-0": { "ApaiIO": "lib/" }
},

"require": {
    "exeu/apai-io": "dev-master"
}

}

from apai-io.

dspasic avatar dspasic commented on May 20, 2024

I recommend to read and understand the excellent documentation on getcomposer.org.

Remove your current composer.json and execute:

/path/to/php composer.phar require "exeu/apai-io:1.*" 

from apai-io.

neatville avatar neatville commented on May 20, 2024

My problem with composer has been fixed for a while now.

I see that there is a Config.dist.php file in the samples folder. Is that the only file that needs to be filled out to start running the examples, and using this library right away? (with the exception of the last line, I take it)

<?php
define('AWS_API_KEY', 'API KEY');
define('AWS_API_SECRET_KEY', 'SECRET KEY');
define('AWS_ASSOCIATE_TAG', 'ASSOCIATE TAG');
define('AWS_ANOTHER_ASSOCIATE_TAG', 'ANOTHER ASSOCIATE TAG');

from apai-io.

Exeu avatar Exeu commented on May 20, 2024

These are constants and should be used only in the examples.

from apai-io.

Bhabatosh avatar Bhabatosh commented on May 20, 2024

Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package exeu/apai-io 1.0.0 could not be found.
Problem 2
- Installation request for exeu/apai-io dev-master -> satisfiable by exeu/apai-io[dev-master].
- exeu/apai-io dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

my composer.json file content as follows:
{
"name": "exeu/apai-io",
"type": "library",
"description": "Amazon Product Advertising PHP Library",
"keywords": ["Amazon", "ECS", "Product Advertising", "SOAP", "REST", "Products"],
"homepage": "https://github.com/Exeu/apai-io",
"license": "Apache-2.0",
"authors": [
{
"name": "Jan Eichhorn",
"email": "[email protected]",
"role": "Maintainer"
},
{
"name": "Dejan Spasic",
"email": "[email protected]",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/Exeu/apai-io/issues"
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"ext-curl": "*"
},
"require": {
"exeu/apai-io": "dev-master"
},
"autoload": {
"psr-0": { "ApaiIO": "lib/" }
}
}

from apai-io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.