Discussion on Invoicr - PHP Class For Beautiful Invoices


GoForEpic does not currently provide support for this item.

71 comments found.

Ok nice, there’s no support… I understand that but there seems to be a problem with rendering the pdf as a string ! please advise me on what I should do.

I’m using the phpmailer() class to send it as an attachement. If I try to print the string in the browser, nothing comes out. Seems like the string is empty !

Hi Ygery, can you please be a bit more specific so that we can see what the problem is. Please provide us with the steps required to simulate the problem.

Quite easy actually. Just try to do $file = $invoice->render(‘Envato.pdf’,’S’); That should render the pdf as a string allowing you to send it as an email with phpmailer (AddStringAttachement). But render S is not returning anything making it impossible to send it as an email…

Sloved but the problem is on your side: your render function has 4 cases, in 3 of them, it’s fine. But in the the S case (return as a string) that’s exactly whats missing: no return. In invoicr.php, render function, modify ’$this->Output($name,$destination);’ to return $this->Output($name,$destination);

Then everything works as expected.


It it possible to send directly the invoice by email (smtp) without saving on the server ?

hello, on pdf invoice i have issue with € charset display. how i can fix this?


Polish words not work.

Exmaple: “Termin płatności”

Any ideas?

hey guyz can you build invoice software like this, please mail me on this email id fo r further discussion 1 july gst launch in india, so it create a big sale you also contact for next

Does this have the ability to include both Bill To and Ship To information?

Hello, I wish you all my best wishes for the new year, and especially health. I have a problem with your PHP script: With $ invoice-> render (‘Envato.pdf’, ‘I’); we can see the Envato logo, but if I download on my PC or if I use $ invoice-> render (‘Envato.pdf’, ‘F’); to create the PDF in my server, the Envato logo disappears and I have a message that the image is unreadable, memory problem.

Exemple :

- -> Logo Envato is OK juste with : render (‘Envato.pdf’, ‘I’)

- -> Logo Envato is not OK with : render (‘Envato.pdf’, ‘F’)

Thanks for your help. Olivier


Please when will you release a php7 version of this code? I am having the error below.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; invoicr has a deprecated constructor in C:\wamp64\www\invoicr\invoicr.php

can you help out?

your demo not working

Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/invoicer/invoicr.php on line 277

Warning: count(): Parameter must be an array or an object that implements Countable in /invoicer/invoicr.php on line 277 FPDF error: Some data has already been output, can’t send PDF file

Not working

Is it working this PHP invoicing without mysql ?!