Coder Social home page Coder Social logo

Comments (5)

JanSlabon avatar JanSlabon commented on September 27, 2024 1

@sovetski the information about "no fixed" dependencies is in the README.txt just some lines above your quoted text:

FPDI/README.md

Lines 20 to 22 in bda0af0

Because FPDI can be used with FPDF, TCPDF or tFPDF we haven't added a fixed dependency in the main
composer.json file. You need to add the dependency to the PDF generation library of your choice
yourself.

So at the end it depends on the library you need how to install it - that's why Max send you a link to an example of FPDF.
I'm more wondering why you have a folder structure simliar to composer (the vendor folder) but require the package manually?

from fpdi.

MaximilianKresse avatar MaximilianKresse commented on September 27, 2024

You have to require FPDF too:

require_once('/your/path/to/fpdf/src/fpdf.php');

from fpdi.

sovetski avatar sovetski commented on September 27, 2024

You have to require FPDF too:

require_once('/your/path/to/fpdf/src/fpdf.php');

Is it something that we have in the documentation? If not, I can do a quick PR to precise that we have to do it

from fpdi.

MaximilianKresse avatar MaximilianKresse commented on September 27, 2024

This is part of the FPDF documentation and not of FPDI. It can be found in this example: http://www.fpdf.org/en/tutorial/tuto1.htm

from fpdi.

sovetski avatar sovetski commented on September 27, 2024

Thank you @JanSlabon for the clarification.

why you have a folder structure simliar to composer (the vendor folder) but require the package manually?

It was for a WordPress website, it is a real problem on this kind of CMS to load composer autoload, because we can get a conflict with package versions with other plugins which loads also their own composer. The solution is to prefix namespaces of dependencies or just load what we really need manually (a dirty solution but sometimes we have not choice)

from fpdi.

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.