{"id":19390850,"url":"https://github.com/tecnickcom/tc-lib-pdf-encrypt","last_synced_at":"2025-04-24T00:31:39.560Z","repository":{"id":57066262,"uuid":"46923243","full_name":"tecnickcom/tc-lib-pdf-encrypt","owner":"tecnickcom","description":"PHP library to encrypt data for PDF documents","archived":false,"fork":false,"pushed_at":"2024-09-06T12:58:13.000Z","size":203,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-06T17:07:49.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tecnickcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-pdf-encrypt%20project"]}},"created_at":"2015-11-26T11:37:12.000Z","updated_at":"2024-09-06T12:58:15.000Z","dependencies_parsed_at":"2023-10-11T19:24:24.779Z","dependency_job_id":"6819e90e-3800-4d09-8a87-c68921e26323","html_url":"https://github.com/tecnickcom/tc-lib-pdf-encrypt","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.033333333333333326","last_synced_commit":"6ad8865c487f42b74cc217f0237c89e02c2da368"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-pdf-encrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-pdf-encrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-pdf-encrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2Ftc-lib-pdf-encrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecnickcom","download_url":"https://codeload.github.com/tecnickcom/tc-lib-pdf-encrypt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250539446,"owners_count":21447310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T10:23:35.398Z","updated_at":"2025-04-24T00:31:36.515Z","avatar_url":"https://github.com/tecnickcom.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-pdf-encrypt%20project"],"categories":[],"sub_categories":[],"readme":"# tc-lib-pdf-encrypt\n*PHP library to encrypt data for PDF*\n\n[![Latest Stable Version](https://poser.pugx.org/tecnickcom/tc-lib-pdf-encrypt/version)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-encrypt)\n![Build](https://github.com/tecnickcom/tc-lib-pdf-encrypt/actions/workflows/check.yml/badge.svg)\n[![Coverage](https://codecov.io/gh/tecnickcom/tc-lib-pdf-encrypt/graph/badge.svg?token=Pv1MNH3X3v)](https://codecov.io/gh/tecnickcom/tc-lib-pdf-encrypt)\n[![License](https://poser.pugx.org/tecnickcom/tc-lib-pdf-encrypt/license)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-encrypt)\n[![Downloads](https://poser.pugx.org/tecnickcom/tc-lib-pdf-encrypt/downloads)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-encrypt)\n\n[![Donate via PayPal](https://img.shields.io/badge/donate-paypal-87ceeb.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-pdf-encrypt%20project)\n*Please consider supporting this project by making a donation via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20tc-lib-pdf-encrypt%20project)*\n\n* **category**    Library\n* **package**     \\Com\\Tecnick\\Pdf\\Encrypt\n* **author**      Nicola Asuni \u003cinfo@tecnick.com\u003e\n* **copyright**   2011-2024 Nicola Asuni - Tecnick.com LTD\n* **license**     http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)\n* **link**        https://github.com/tecnickcom/tc-lib-pdf-encrypt\n* **SRC DOC**     https://tcpdf.org/docs/srcdoc/tc-lib-pdf-encrypt\n\n## Description\n\nPHP library to encrypt data for PDF.\n\nThe initial source code has been derived from [TCPDF](\u003chttp://www.tcpdf.org\u003e).\n\n\n### OpenSSL 3\n\nWhen using OpenSSL 3 some legacy providers are disabled by default.\nThis will trigger the following error when executing the test:\n\n```\nerror:0308010C:digital envelope routines::unsupported\n```\n\nLegacy provider can be enabled by followign the instructions at: https://wiki.openssl.org/index.php/OpenSSL_3.0#Providers\n\n```bash\nsudo nano /etc/ssl/openssl.cnf\n```\n\n```bash\n   openssl_conf = openssl_init\n\n   [openssl_init]\n   providers = provider_sect\n   \n   [provider_sect]\n   default = default_sect\n   legacy = legacy_sect\n   \n   [default_sect]\n   activate = 1\n   \n   [legacy_sect]\n   activate = 1\n```\n\nAn alternative OpenSSL configuration file is provided on and set by default in the Makefile.\nTo overrride the custom OpenSSL configuration file set the following environment variable:\n\n```bash\nexport OPENSSL_CONF=/etc/ssl/openssl.cnf\n```\n\n## Getting started\n\nThis library requires the openssl php extension.\n\nFirst, you need to install all development dependencies using [Composer](https://getcomposer.org/):\n\n```bash\n$ curl -sS https://getcomposer.org/installer | php\n$ mv composer.phar /usr/local/bin/composer\n```\n\nThis project include a Makefile that allows you to test and build the project with simple commands.\nTo see all available options:\n\n```bash\nmake help\n```\n\nTo install all the development dependencies:\n\n```bash\nmake deps\n```\n\n## Running all tests\n\nBefore committing the code, please check if it passes all tests using\n\n```bash\nmake qa\n```\n\nAll artifacts are generated in the target directory.\n\n\n## Example\n\nExamples are located in the `example` directory.\n\nStart a development server (requires PHP 8.0+) using the command:\n\n```\nmake server\n```\n\nand point your browser to \u003chttp://localhost:8000/index.php\u003e\n\n\n## Installation\n\nCreate a composer.json in your projects root-directory:\n\n```json\n{\n    \"require\": {\n        \"tecnickcom/tc-lib-pdf-encrypt\": \"^2.0\"\n    }\n}\n```\n\nOr add to an existing project with: \n\n```bash\ncomposer require tecnickcom/tc-lib-pdf-encrypt ^2.0\n```\n\n## Packaging\n\nThis library is mainly intended to be used and included in other PHP projects using Composer.\nHowever, since some production environments dictates the installation of any application as RPM or DEB packages,\nthis library includes make targets for building these packages (`make rpm` and `make deb`).\nThe packages are generated under the `target` directory.\n\nWhen this library is installed using an RPM or DEB package, you can use it your code by including the autoloader:\n```\nrequire_once ('/usr/share/php/Com/Tecnick/Pdf/Encrypt/autoload.php');\n```\n\n\n\n## Developer(s) Contact\n\n* Nicola Asuni \u003cinfo@tecnick.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Ftc-lib-pdf-encrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecnickcom%2Ftc-lib-pdf-encrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Ftc-lib-pdf-encrypt/lists"}