Giter VIP home page Giter VIP logo

Comments (8)

lsolesen avatar lsolesen commented on August 26, 2024

I think we should point to composer docs instead. Composer is widely used
and we do not provide specific info about all situations with git or manual
install.

from pdf-php.

ole1986 avatar ole1986 commented on August 26, 2024

mhm... but all matters on how we force ppl to use composer...
Example is in the README.md you wrote composer global require package which will install the library in ~/.composer

Following your example installation I will get stuck at the point require 'vendor/autoload.php' because the vendor folder in does not exists in my current project directory

from pdf-php.

lsolesen avatar lsolesen commented on August 26, 2024

Lets remove the global part. That is rarely used anyways.

from pdf-php.

ole1986 avatar ole1986 commented on August 26, 2024

Targeting vendor/autoload.php is generally not a good idea and only works if you run the script from the correct directory. The following should serve you better:

require_once DIR.'/../vendor/autoload.php';

Questions follows: How is the global part supposed to work?

from pdf-php.

ole1986 avatar ole1986 commented on August 26, 2024

Yeah, I think doing it without the global thing will be best... Even I dont see much benefit of using composer because I can update at any time using git for this...

Anyways, we can add this as second "installation" concept

from pdf-php.

lsolesen avatar lsolesen commented on August 26, 2024

You need the global in your include path. Following the example with manual
install example you also need to be in the current dir. I've used this for
PEL and never had a single question about it. But feel free to update as
you see fit.

from pdf-php.

ole1986 avatar ole1986 commented on August 26, 2024

I am little bit confused now

  • Your example of "installing" the pdf-php package requires the person to have a file composer.json - what they usually dont have?! how do they get this file?!
  • Also, what is the next step when they have such composer.json, do they really need to add the line "rospdf/pdf-php": "0.12.*" manually? I thought its enough to do a composer require rospdf/pdf-php - And it does not matter if I have such composer.json in my project already or not.

I know you are used to all the composer stuff and I am happy to have you on board

But please also accept that we have to write it so that everyone wont have any difficulties in understanding and installing it - either through git clone variant or composer installation

I will take care of the git clone variant btw
Thank you

from pdf-php.

lsolesen avatar lsolesen commented on August 26, 2024

Composer is used for dependency management for you application. I usually create the composer.json manually, and composer require will add the lines I need, but usually I edit it in manually and do composer install if it is the first time, or composer update if I updated any packages or added more packages . Other people might do it differently.

People should only install through composer, if they are familiar with composer. It should not IMHO be a guide to understand composer. I think you did great with the linking to more docs, and I think you made it clear.

I see you rewritten the composer install, so I trust that you are satisfied with it now.

from pdf-php.

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.