{"id":15026391,"url":"https://github.com/umutc/aws-lambda-layer-php73","last_synced_at":"2025-04-09T20:21:30.787Z","repository":{"id":94784906,"uuid":"165328872","full_name":"umutc/aws-lambda-layer-php73","owner":"umutc","description":"AWS lambda layer for php 7.3.1 and SAM Deployment","archived":false,"fork":false,"pushed_at":"2024-11-02T17:36:58.000Z","size":14466,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T22:12:58.450Z","etag":null,"topics":["aws-lambda","lambda-functions","lambda-php","php","php73"],"latest_commit_sha":null,"homepage":"https://twitter.com/umutcelikcomtr","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/umutc.png","metadata":{"files":{"readme":"README.MD","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-12T00:20:19.000Z","updated_at":"2024-11-02T17:37:02.000Z","dependencies_parsed_at":"2025-02-15T20:32:48.472Z","dependency_job_id":"b4027a53-8c70-491c-bd5d-f91e667a0690","html_url":"https://github.com/umutc/aws-lambda-layer-php73","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutc%2Faws-lambda-layer-php73","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutc%2Faws-lambda-layer-php73/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutc%2Faws-lambda-layer-php73/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umutc%2Faws-lambda-layer-php73/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umutc","download_url":"https://codeload.github.com/umutc/aws-lambda-layer-php73/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104344,"owners_count":21048326,"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":["aws-lambda","lambda-functions","lambda-php","php","php73"],"created_at":"2024-09-24T20:04:23.938Z","updated_at":"2025-04-09T20:21:30.715Z","avatar_url":"https://github.com/umutc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda PHP Hello World\n\nThe basics of using [SAM Cli][1] for AWS Lambda PHP applications.\n\n## Deploy\n1. Install SAM Cli by following the [Quick Start][2]\n2. Set up your [AWS credentials][3]\n3. Select one under the options\n    1. Create php binary by following steps in [`doc/create_php_binary.md`][4]\n    2. Use prebuilt [Php 7.3.1][5]\n    3. Just put the yml this projects ARN `arn:aws:lambda:eu-central-1:303814004728:layer:aws-lambda-layer-php-7-3-1:6`\n4. Write your serverless application (!) - the default is in `src/handlers/hello.php`\n5. Run `./deploy.sh` to deploy to Lambda\n\n## PHP handler function signature\nHandler: filename.functionName\n    hello.hello\nThe signature for the PHP function is:\n\n    function main($eventData) : array\n\nHello world looks like:\n\n    \u003c?php\n    function hello($eventData) : array\n    {\n        return [\"msg\" =\u003e \"Hello from PHP \" . PHP_VERSION];\n    }\n\n## Local Tests\n#### Input stream as event\nRun:\n`echo \"hi\" | sam local invoke HelloPhp73`\nResult: \n`{\"msg\":\"hello from PHP 7.3.1\",\"eventData\":\"hi\\n\",\"data\":null}`\n#### File stream as event\nRun:\n`sam local invoke HelloPhp73 --event=events/hello.sampledata.json`\nResult:\n```\n{\n    \"msg\": \"hello from PHP 7.3.1\",\n    \"eventData\": \"{\\n    \\\"id\\\": \\\"ulbimesm12ym12kmzkzfgkzkuzeyfg\\\",\\n    \\\"name\\\": \\\"Lambda\\\",\\n    \\\"icon\\\": \\\"\\u03bb\\\"\\n}\",\n    \"data\": {\n        \"id\": \"ulbimesm12ym12kmzkzfgkzkuzeyfg\",\n        \"name\": \"Lambda\",\n        \"icon\": \"\\u03bb\"\n    }\n}\n```\n\n\n[1]: https://github.com/awslabs/aws-sam-cli\n[2]: https://docs.aws.amazon.com/en_us/serverless-application-model/latest/developerguide/serverless-quick-start.html\n[3]: https://serverless.com/framework/docs/providers/aws/guide/credentials/\n[4]: doc/create_php_binary.md\n[5]: layer/php/php\n[6]: 'arn:aws:lambda:eu-central-1:303814004728:layer:aws-lambda-layer-php-7-3-1:6'","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutc%2Faws-lambda-layer-php73","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumutc%2Faws-lambda-layer-php73","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumutc%2Faws-lambda-layer-php73/lists"}