New PHP PDF Library Integration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    New PHP PDF Library Integration

    I'm looking to see if a different PHP PDF library would work within EspoCRM as I'm finding that the TCPDF module doesn't handle CSS very well at all compared to other open-source libraries available.

    When using the release version of EspoCRM, I have added the required PHP files from an alternative PDF library into the "vendor" folder and inside the application\Espo\Core\Pdf folder (I'm not using the Custom folder for these tests) however whenever I try to reference this from the calling PHP files (i.e. where the PDF functions are called), I always get a "Class XXX not found" error in the error log yet I am referencing any namespaces correctly plus all files in the "require" sections are present.

    Is there anything special that needs to be done with "composer" in order to bring in additional PHP libraries?
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,
    when i use library i do :
    - composer require phpoffice/phpword
    - composer dump-autoload -o
    and you can use '-ignore-platform-reqs' if you don't have some php extension installed.

    so i can use everywhere the class.

    never make a composer update !

    Regards
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • emillod
      Active Community Member
      • Apr 2017
      • 1405

      #3
      We recorded video how to create extension with composer packages

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1476

        #4
        Thanks man for this video
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        Working...