{"id":28754229,"url":"https://github.com/zeroasterisk/cakephp-litle-plugin","last_synced_at":"2025-06-17T01:08:02.538Z","repository":{"id":137479260,"uuid":"2607556","full_name":"zeroasterisk/CakePHP-Litle-Plugin","owner":"zeroasterisk","description":"CakePHP Plugin to interact with the Litle API","archived":false,"fork":false,"pushed_at":"2014-11-03T16:10:12.000Z","size":2011,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T01:28:27.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://zeroasterisk.github.com/CakePHP-Litle-Plugin/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeroasterisk.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-19T17:04:58.000Z","updated_at":"2020-06-11T12:28:59.000Z","dependencies_parsed_at":"2023-05-12T04:15:47.925Z","dependency_job_id":null,"html_url":"https://github.com/zeroasterisk/CakePHP-Litle-Plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeroasterisk/CakePHP-Litle-Plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FCakePHP-Litle-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FCakePHP-Litle-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FCakePHP-Litle-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FCakePHP-Litle-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroasterisk","download_url":"https://codeload.github.com/zeroasterisk/CakePHP-Litle-Plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2FCakePHP-Litle-Plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269458,"owners_count":22983647,"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":"2025-06-17T01:07:59.991Z","updated_at":"2025-06-17T01:08:02.239Z","avatar_url":"https://github.com/zeroasterisk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Litle API\n\nA CakePHP plugin to facilitate the easy implementation of Litle Bank's API.\n\n## Install\n\n    git submodule add app/Plugin/Litle __repo_path__\n    cp app/Plugin/Litle/Config/litle.example.php app/Config/litle.php\n\n    cd app/Plugin\n    git clone __repo_path__ Litle\n    cp Litle/Config/litle.example.php ../Config/litle.php\n\nFinally, add the following to ../Config/database.php\n\n    public $litle = array(\n        'datasource' =\u003e 'Litle.LitleSource',\n        /* the rest of the config is in config/litle.php */\n    );\n\n## Configuration\n\nEdit: `app/Config/litle.php`\n\n## API Logging\n\nIt's a good idea to log every API interaction, both what we sent and what we get back.\n\nEdit the config file (above) and you can set logging to false, to disable API logging.\n\n    $config['Litle']['logModel'] = false;\n\nor edit the config file (above) and you can set logging to any Model you want\nto setup in your application:\n\n    $config['Litle']['logModel'] = 'MyCustomLoggingModel';\n\nWhen an API transaction happens, it attempts to log in the following ways,\nthe first one of them that's available, wins:\n\n    1) $MyCustomLoggingModel-\u003elogLitleRequest($LitleSale-\u003elastRequest); # else\n    2) $MyCustomLoggingModel-\u003elogRequest($LitleSale-\u003elastRequest); # else\n    3) $MyCustomLoggingModel-\u003esave($LitleSale-\u003elastRequest);\n\nThe `lastRequest` contains the following values:\n\n    $lastRequest = compact('type', 'status', 'response', 'message', 'transaction_id', 'litleToken', 'errors', 'data', 'request_raw', 'response_array', 'response_raw', 'url');\n\nYou can see a mockup of a Fixture and a Schema for your own API log tables\n\n* https://github.com/zeroasterisk/CakePHP-Litle-Plugin/tree/master/Test/Fixture/MyCustomLoggingModelFixture.php\n* https://github.com/zeroasterisk/CakePHP-Litle-Plugin/tree/master/Config/Schema/schema.php\n\n## Features\n\n* Credit Card Processing\n** sales (charges)\n** voids\n** credits (refunds)\n* Tokenization\n** built into the sale\n** stand alone API\n* Recycler Advice / Updater\n** built into the sale / implied on recycle attempts\n\n## Unit Tests\n\n    ./cake test Litle AllLitle\n\nNOTE: you will need to have your IP address allowed into Litle's prelive and postlive url/firewall.\n\n## About\n\nauthor Alan Blount \u003calan@zeroasterisk.com\u003e https://github/com/zeroasterisk/\nauthor Nick Baker \u003cnick@webtechnick.com\u003e https://github.com/webtechnick/\n\ncopyright (c) 2011 Alan Blount\nlicense MIT License - http://www.opensource.org/licenses/mit-license.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fcakephp-litle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroasterisk%2Fcakephp-litle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fcakephp-litle-plugin/lists"}