{"id":13704386,"url":"https://github.com/nmcteam/image-with-text","last_synced_at":"2025-08-25T13:10:33.184Z","repository":{"id":11847064,"uuid":"14404421","full_name":"nmcteam/image-with-text","owner":"nmcteam","description":"Create images with embedded text using advanced typography","archived":false,"fork":false,"pushed_at":"2017-10-26T16:59:21.000Z","size":318,"stargazers_count":142,"open_issues_count":8,"forks_count":36,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-05T14:52:29.898Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmcteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-14T19:16:32.000Z","updated_at":"2025-06-14T22:57:19.000Z","dependencies_parsed_at":"2022-09-15T18:24:11.448Z","dependency_job_id":null,"html_url":"https://github.com/nmcteam/image-with-text","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/nmcteam/image-with-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmcteam%2Fimage-with-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmcteam%2Fimage-with-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmcteam%2Fimage-with-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmcteam%2Fimage-with-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmcteam","download_url":"https://codeload.github.com/nmcteam/image-with-text/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmcteam%2Fimage-with-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272070864,"owners_count":24868088,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-02T21:01:08.665Z","updated_at":"2025-08-25T13:10:33.141Z","avatar_url":"https://github.com/nmcteam.png","language":"PHP","funding_links":[],"categories":["图像","图像 Imagery","目录","Imagery","图像( Imagery )"],"sub_categories":["图像 Imagery"],"readme":"# Image with Text\n\nThis class makes it super easy to render images with multiple, independently styled\ntext blocks. You can control each text block's alignment, color, font, line height, and size.\nYou may also position each text block with specific X and Y coordinates relative to the\nsource image.\n\n## Installation\n\nInstall this library with [Composer](http://getcomposer.org). Add this to your `composer.json` file:\n\n    {\n        \"require\": {\n            \"nmcteam/image-with-text\": \"~2.0\"\n        }\n    }\n\nThen run `composer install`.\n\n## Usage\n\nHere's a quick demonstration. You can find this full working demo in the `example/`\ndirectory.\n\n    \u003c?php\n    require '../vendor/autoload.php';\n\n    // Create image\n    $image = new \\NMC\\ImageWithText\\Image(dirname(__FILE__) . '/source.jpg');\n\n    // Add styled text to image\n    $text1 = new \\NMC\\ImageWithText\\Text('Thanks for using our image text PHP library!', 3, 25);\n    $text1-\u003ealign = 'left';\n    $text1-\u003ecolor = 'FFFFFF';\n    $text1-\u003efont = dirname(__FILE__) . '/Ubuntu-Medium.ttf';\n    $text1-\u003elineHeight = 36;\n    $text1-\u003esize = 24;\n    $text1-\u003estartX = 40;\n    $text1-\u003estartY = 40;\n    $image-\u003eaddText($text1);\n\n    // Add another styled text to image\n    $text2 = new \\NMC\\ImageWithText\\Text('No, really, thanks!', 1, 30);\n    $text2-\u003ealign = 'left';\n    $text2-\u003ecolor = '000000';\n    $text2-\u003efont = dirname(__FILE__) . '/Ubuntu-Medium.ttf';\n    $text2-\u003elineHeight = 20;\n    $text2-\u003esize = 14;\n    $text2-\u003estartX = 40;\n    $text2-\u003estartY = 140;\n    $image-\u003eaddText($text2);\n\n    // Render image\n    $image-\u003erender(dirname(__FILE__) . '/destination.jpg');\n\n\n## How to Contribute\n\n* Fork the repo on GitHub and send a pull request\n* Find a list of TODOs on the GitHub issue tracker\n\nWe have not written any unit tests just yet, but we hope to do that soon.\n\n## Author\n\n[Josh Lockhart](http://www.newmediacampaigns.com/about/team/josh-lockhart)\n\n## Copyright\n\n(c) 2013 New Media Campaigns\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmcteam%2Fimage-with-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmcteam%2Fimage-with-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmcteam%2Fimage-with-text/lists"}