FAQs

Some frequently asked questions about phpdocx

Technical questions

phpdocx is compatible with all PHP versions from PHP 5.6 to PHP 8.3. Some PHP extensions should be active:
  • ZIP
  • XML
  • mbstring
  • Tidy (not a requirement but needed for HTML conversion)
These extensions are usually active in the default PHP set up; phpdocx works on any OS that supports PHP, such as Windows, Linux or macOS.

If you have trouble running phpdocx we recommend you to read the documentation section. You will find there descriptions and examples of all the available phpdocx methods, as well as a tutorial, a practical section with a useful introduction to the library and a Cookbook filled with many tricks and tips to solve common tasks.

If you would like the phpdocx team to take care of the task, you can acquire support tickets. Through the ticketing system, our IT team will perform a remote installation for you or prepare the script you need to process your documents.

To convert correctly HTML to DOCX with phpdocx it is mandatory to install the Tidy PHP extension. Tidy automatically solves any issue when importing CSS, UTF8 characters or invalid HTML code.

HTML import works through the embedHTML and replaceVariableByHTML methods. Both are available on all licenses.

DOCX to HTML conversion is done with the TransformDocAdvHTML class, available on the Advanced and Premium licenses.

phpdocx Advanced, Premium and Bureau licenses include the conversion plugin. It allows to transform DOCX files to PDF, as well as other formats such as HTML, DOC, ODT, RTF and so on.

There are four types of conversion plugins: native, libreoffice, msword and openoffice. The LibreOffice plugin is the best choice because of its output quality and performance.

Although some shared hostings allow to install external programs, a VPS or dedicated server is advisable to run the conversion plugin based on LibreOffice.

phpdocx doesn't call to any external server; that's why it is a completely safe library and all the documents it generates are private.

phpdocx is built around Open Source technologies, so anyone can modify its code as long as it is not redistributed. Nevertheless, you should take into account that modifications of the core that are not "phpdocx Certified" may complicate considerably external technical support.

Trial package is different from the Advanced, Premium and Bureau licenses. To remove the Trial message you have to download a new package after buying a license.

All purchased packages are available for download from MY PHPDOCX.

Advanced, Premium and Bureau licenses have support for PHP namespaces. This facilitates their integration in any modern PHP framework like Symfony, Laravel, Yii and any project that uses Composer.

There are phpdocx packages that doesn't use namespaces for projects that work without them.

Advanced, Premium and Bureau licenses have two packages available for download: classic and namespaces.

Both packages count with the same features, with one exception: namespaces include support for PHP namespaces (http://php.net/manual/en/language.namespaces.php) while classic don't.

What package to choose depends entirely on the project with which phpdocx will be integrated. If the project uses PHP namespaces, as the majority of frameworks and CMS do, the optimal choice is the namespaces one.

Commercial questions

2mdc (Narcea Producciones Multimedia, S.L.) may, at its discretion, issue a refund within thirty (30) days of purchase date or download if there is a technical problem with a functionality fully covered by phpdocx that cannot be resolved within five (5) business days of the customer request.

To receive a refund you must obtain an Affidavit of Software Destruction (ASD) after our Support Team have reviewed your case. To receive an ASD just contact us through our web form. Please provide complete order information with your request.

The completed Affidavit of Software Destruction must be received by 2mdc within thirty (30) days after purchase date or download.

You must also destroy all copies of phpdocx from any computers owned or controlled by you where you have installed it. Once you have returned the Affidavit of Software Destruction to us, all licenses you may have to use phpdocx will be immediately cancelled, and any further use of the software will be an infringement of copyrights as well as other intellectual property rights.

Upon receipt of a properly executed Affidavit of Software Destruction via email, we will provide a refund in the next three (3) business days by the same way the purchase was made, less extended transaction charges from PayPal, credit card or bank transfer, which will not be refunded.

2mdc reserves the right to disable any user account, product keys, vouchers and/or serial numbers issued for the refunded products.

After you complete the payment, PayPal will provide you a direct link to phpdocx.com to download a package containing all library files and a license code to validate your copy.

If you have any problem in the buying process, please, email us so we can help you to sucessfully complete it.

You can login and download at any time your package and license from the "My phpdocx" section of this website. Future updates of the library will also be available at this section for download.

Every copy of phpdocx is licensed to run on a single server under a specific domain/IP (based on the package chosen) and, additionally, in localhost and private networks (classes A, B and C).

This flexible licensing policy enable to use phpdocx in almost all environments and always with a dual purpose of running: live and development. For example, development with an Advanced license can be made in your LAN or using a live subdomain of the registered domain like: test.domain.com, sandbox.domain.com...

Upon start the library will check the domain name from which is being ran and it will validate your license.

If you are a licensee you can change the source code to meet your needs but redistribution of the library (source or binary code) is prohibited.

You may not use standard licenses for a SaaS or a PaaS service. Please contact us to know the specific conditions for those particular cases.

  1. Changing the name of the subdomain/domain or the IP number of a license can only be made in licenses with a valid LUS1.

    The "change fee" for licenses that meet this requirement is 60% of the current price of an equivalent license.

    (1) Licenses which cannot buy a LUS (e.g. withdrawn licenses like PRO+) can also access to this option by paying a "change fee" equal to 70% of the current price of the license with the nearest functionality.
  2. If you misspelled the domain name during the purchasing process your phpdocx copy will not run on your server. In this case you can contact us explaining what happened and giving us the correct URL. We will create a new license key for you.

Yes, the payment for your phpdocx copy is a one-time fee without any additional charges. After purchasing you may use the library forever with no further restrictions.
We offer secure payment process with PayPal, so at checkout you may choose among these options:
  • PayPal account.
  • Debit or credit card, including MasterCard/EuroCard, VISA/Delta/Electron, Discover, American Express and Switch/Maestro.

You may also purchase a license through a bank transfer.

To do so, please contact us, stating your company information (name and address) and VAT number for UE countries. We'll send you a quote with our bank data.

If you can't successfully complete the checkout step after a couple of attempts, please go to PayPal.com. Choose your country and contact your local support center at the bottom of the home page to know the reason of the issue. However, the trouble will be probably linked to some kind of credit card authorization. We suggest you to contact VISA/MasterCard as the best way to find out how to solve it.

If the issue persists or you prefer another payment method, we offer our phpdocx clients to purchase the license through a bank transfer.

To do so, please contact us, stating your company information (name and address) and VAT number for UE countries. We'll send you a quote with our bank data.

Follow these steps to update a license to the latest version:

  • Log in and go to MY PHPDOCX.
  • You'll go straight to the licenses section. Find the license(s) you want to update.
  • Click the “Upgrade to...” button. Choose the package you prefer: Advanced, Premium or Bureau.
  • Complete the process and your license will be updated.
  • During the process you'll be able to get a LUS (License Update Service) to keep the license updated for a year with a 33% off.

Yes. Even after upgrading, you can use any of them until the new version is on production.