{"id":13669382,"url":"https://github.com/nielse63/php-image-cache","last_synced_at":"2025-04-08T02:42:45.874Z","repository":{"id":10851802,"uuid":"13134113","full_name":"nielse63/php-image-cache","owner":"nielse63","description":"Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.","archived":false,"fork":false,"pushed_at":"2024-07-05T23:12:40.000Z","size":40856,"stargazers_count":453,"open_issues_count":11,"forks_count":105,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-01T01:42:26.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nielse63.github.io/php-image-cache","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/nielse63.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-26T20:57:05.000Z","updated_at":"2025-02-11T16:01:17.000Z","dependencies_parsed_at":"2024-08-02T08:04:56.837Z","dependency_job_id":"850a45f9-bb75-4254-b5af-6f1a5915a144","html_url":"https://github.com/nielse63/php-image-cache","commit_stats":{"total_commits":94,"total_committers":12,"mean_commits":7.833333333333333,"dds":0.2978723404255319,"last_synced_commit":"2b13107761f80b1f5369aad07951cb8ad513b0b3"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fphp-image-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fphp-image-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fphp-image-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nielse63%2Fphp-image-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nielse63","download_url":"https://codeload.github.com/nielse63/php-image-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767232,"owners_count":20992538,"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-08-02T08:01:11.614Z","updated_at":"2025-04-08T02:42:45.850Z","avatar_url":"https://github.com/nielse63.png","language":"PHP","funding_links":[],"categories":["PHP","类库"],"sub_categories":["图像处理"],"readme":"# NO LONGER MAINTAINED!!! \n\n# Image Cache v. 1.0.0\n\nImage Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.\n\n## Current Status\n\n[![Build Status](https://travis-ci.org/nielse63/php-image-cache.png?branch=master)](https://travis-ci.org/nielse63/php-image-cache)\n\nEmploying \u003ca href=\"http://travis-ci.org\" taret=\"_blank\"\u003etravis-ci.org\u003c/a\u003e for continuous integration testing and assurance of code validity.\n\n## Installation\n\nInstall \u003ca href=\"http://getcomposer.org\" target=\"_blank\"\u003eComposer\u003c/a\u003e by opening Terminal and navigating to the directory in which you'd like to install Image Cache.\n\nDownload Composer:\n\n```bash\ncurl -sS https://getcomposer.org/installer | php\n```\n\nCreate a `composer.json` file:\n\n```json\n\t{\n\t\t\"require\" : {\n\t\t\t\"nielse63/phpimagecache\": \"dev-master\"\n\t\t}\n\t}\n```\n\nNavigate to your project root and run the `install` command.\n\n```bash\n$ php composer.phar install\n```\n\nFrom there, include the `vendor/autoload.php` file in your project, and initialize the class as normal.\n\nMore information on installing and using Composer can be found at \u003ca href=\"http://getcomposer.org\" target=\"_blank\"\u003egetcomposer.org\u003c/a\u003e, and dependency information on the package can be found at \u003ca href=\"https://packagist.org/packages/nielse63/phpimagecache\" target=\"_blank\"\u003epackagist.org\u003c/a\u003e.\n\n## Testing\n\n### Manual Testing\n\nTo test the script manually by receiving visual output, setup a virtual host and load `demo/index.php` in your browser.  Three examples are set in that file: the original image called from an outside source; a cached example referencing the outside source via an absolute URL; and an internal source referencing a file path.\n\nUsing Chrome Developer Tools you can see the difference in load times between the external source (non-cached image) and the internally stored and cached image.\n\n### Unit Testing\n\nSome extremely basic unit tests are included with the script and can be run using \u003ca href=\"http://phpunit.de/\" target=\"_blank\"\u003ePHP Unit\u003c/a\u003e.  I'm working on continuing to build up these tests and would more than welcome any contributions to the tests.\n\nTo execute the tests in a bundled script (along with rebuilding the docs), clone the repository, navigate to the root of the repo in terminal, and execute:\n\n```bash\n$: sh build\n```\n\nAssuming you have the `phpunit` and `phpdoc` commands intalled, the tests will pass and docs will be rebuilt.\n\n## What's Next\n\n\u003ca href=\"https://github.com/nielse63/php-image-cache/blob/master/src/ImageCache/ImageCache.php\"\u003eSee the source\u003c/a\u003e for a full to do list of changes that I wish to accomplish moving forward.\n\n## Contributing\n\nContributing to the project would be a massive help in maintaining and extending the script. The module is being used on a larger scale than I initially imagined, and continuing to maintain it is becoming a little time consuming for just me.\n\nIf you're interested in contributing, \u003ca href=\"https://github.com/nielse63/php-image-cache/pulls\" taret=\"_blank\"\u003eissue a pull request\u003c/a\u003e on Github or email me directly at \u003ca href=\"mailto:erik@312development.com\"\u003eerik@312development.com\u003c/a\u003e.\n\nFor any issues found or extensions you'd like to see, feel free to \u003ca href=\"https://github.com/nielse63/php-image-cache/issues\" taret=\"_blank\"\u003esubmit an issue ticket\u003c/a\u003e so we can start a discussion about the viability of the problem and how it can be resolved.\n\n## License\n\nCreative Commons Attribution Lisence:\n\n\u003ca href=\"http://freedomdefined.org/Licenses/CC-BY\"\u003ehttp://freedomdefined.org/Licenses/CC-BY\u003c/a\u003e\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/nielse63/php-image-cache/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielse63%2Fphp-image-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnielse63%2Fphp-image-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielse63%2Fphp-image-cache/lists"}