{"id":19493902,"url":"https://github.com/xu-li/facebook","last_synced_at":"2026-05-16T15:04:24.558Z","repository":{"id":57085177,"uuid":"95866592","full_name":"xu-li/facebook","owner":"xu-li","description":"A simple facebook generating class based on FPDF.","archived":false,"fork":false,"pushed_at":"2018-04-02T08:43:03.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T20:55:40.797Z","etag":null,"topics":["facebook","fpdf","pdf","pdf-generation"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xu-li.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T08:23:30.000Z","updated_at":"2018-04-02T08:42:35.000Z","dependencies_parsed_at":"2022-08-25T00:50:23.940Z","dependency_job_id":null,"html_url":"https://github.com/xu-li/facebook","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/xu-li/facebook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-li%2Ffacebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-li%2Ffacebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-li%2Ffacebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-li%2Ffacebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xu-li","download_url":"https://codeload.github.com/xu-li/facebook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-li%2Ffacebook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33107567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["facebook","fpdf","pdf","pdf-generation"],"created_at":"2024-11-10T21:27:48.372Z","updated_at":"2026-05-16T15:04:24.529Z","avatar_url":"https://github.com/xu-li.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facebook\n\nA simple facebook generating class based on [FPDF](http://www.fpdf.org/).\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require xu/facebook\n```\n\n## Usage\n\n``` php\n// create a facebook instance\n$pdf = new Facebook();\n\n// set the default font\n$pdf-\u003eSetFont('Times', '', 12);\n\n// add users\n$pdf-\u003eaddUsers([\n    User::fromArray([\n        'image'      =\u003e __DIR__ . \"/blue.png\",\n        'name'       =\u003e \"lixu\",\n        'desc'       =\u003e \"Hi, \\nI am lixu.\",\n    ])\n]);\n\n// render it\n$pdf-\u003erender();\n\n// output to browser\n$pdf-\u003eOutput();\n```\n\n## Example\n\nPlease see [example](https://github.com/xu-li/facebook/blob/master/examples/index.php) for details.\n\n## Testing\n\n``` bash\n$ phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/xu-li/facebook/blob/master/CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Xu Li](https://github.com/xu-li)\n- [All Contributors](https://github.com/xu-li/facebook/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-li%2Ffacebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxu-li%2Ffacebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-li%2Ffacebook/lists"}