Comments (8)
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.
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.
Lets remove the global part. That is rarely used anyways.
from pdf-php.
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.
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.
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.
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 acomposer 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.
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)
- Adjust full - last line HOT 6
- $pdf->ezStream() not rendering HOT 2
- Spot colour HOT 3
- Table heading text color HOT 1
- multiple deprecated code HOT 1
- Tag <b> in the title HOT 2
- Is R&OS still maintained? HOT 4
- PHP8.2 - addPngFromFile() stops working HOT 4
- Change the font of one field in one row of a table HOT 1
- Adding the same image to different pages (PNG or JPEG) only works for the first image HOT 3
- Create an index of contents with page numbers HOT 1
- Save PDF on local server HOT 2
- PHP 8.1 Incompatible HOT 1
- Text modifiers are broken when reaching the end of line HOT 2
- Incorrect full justification HOT 1
- Does not download as pdf when data is sent by post - Google Chrome HOT 12
- formatType is not recognised due to removal in previous commit HOT 1
- Incorrect column width calculation in ezTable
- Numbers are not right-aligning in table HOT 2
- Does not support arabic text in cezpdf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf-php.