{"id":18666721,"url":"https://github.com/lalcebo/aws-sdk-php-params","last_synced_at":"2026-04-27T11:31:23.887Z","repository":{"id":44585791,"uuid":"352863983","full_name":"lalcebo/aws-sdk-php-params","owner":"lalcebo","description":"Provides objects for building request parameters for AWS low-level API.","archived":false,"fork":false,"pushed_at":"2022-02-06T20:29:07.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-19T00:24:00.569Z","etag":null,"topics":["amazon","amazon-web-services","athena","aws","dynamodb","glue","library","parameters","php","php-library","s3"],"latest_commit_sha":null,"homepage":"https://aws.amazon.com/sdk-for-php","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/lalcebo.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}},"created_at":"2021-03-30T03:55:44.000Z","updated_at":"2022-02-03T13:54:49.000Z","dependencies_parsed_at":"2022-09-22T14:41:19.508Z","dependency_job_id":null,"html_url":"https://github.com/lalcebo/aws-sdk-php-params","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lalcebo/aws-sdk-php-params","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalcebo%2Faws-sdk-php-params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalcebo%2Faws-sdk-php-params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalcebo%2Faws-sdk-php-params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalcebo%2Faws-sdk-php-params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalcebo","download_url":"https://codeload.github.com/lalcebo/aws-sdk-php-params/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalcebo%2Faws-sdk-php-params/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["amazon","amazon-web-services","athena","aws","dynamodb","glue","library","parameters","php","php-library","s3"],"created_at":"2024-11-07T08:33:44.559Z","updated_at":"2026-04-27T11:31:23.869Z","avatar_url":"https://github.com/lalcebo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SDK PHP Params\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Tests Workflow][ico-tests]][link-tests]\n[![Style Workflow][ico-style]][link-style]\n[![Software License][ico-license]][link-license]\n\n## Introduction\n\nThe AWS SDK for PHP uses arrays associated with very specific structures as arguments to its methods, this leads to a great dependency on the documentation to create these arrays, what are the optional keys, their possible values, etc. This package provides objects for building request parameters for AWS low-level API.\n\n## Requirements\n\nThis package requires:\n\n- PHP **^7.2** | **^8.0**\n\n## Installation\n\nTo get started, install the package through Composer:\n\n```shell\ncomposer require lalcebo/aws-sdk-php-params\n```\n\n#### Examples\n\n```php\n# Athena\nuse Aws\\Sdk;\nuse Lalcebo\\Aws\\Params\\Athena\\Actions\\StartQueryExecution;\nuse Lalcebo\\Aws\\Params\\Athena\\DataTypes\\QueryExecutionContext;\nuse Lalcebo\\Aws\\Params\\Athena\\DataTypes\\ResultConfiguration;\n\ntry {\n    $sdk = new Sdk([\n        'region' =\u003e 'us-west-2',\n        'version' =\u003e 'latest'\n    ]);\n    \n    $athenaClient = $sdk-\u003ecreateAthena();\n    \n    $startQueryExecution = new StartQueryExecution(\n        'SELECT * FROM tbl',\n        bin2hex(random_bytes(64)),\n        new QueryExecutionContext('catalogName', 'dbName'),\n        new ResultConfiguration(null, 's3://athena-result-bucket/')\n    );\n    \n    $result = $athenaClient-\u003estartQueryExecution($startQueryExecution-\u003etoArray());\n    print_r($result);\n} catch (Throwable $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n```php\n# DynamoDB\nuse Aws\\Sdk;\nuse Lalcebo\\Aws\\Params\\DynamoDB\\Actions\\CreateTable;\nuse Lalcebo\\Aws\\Params\\DynamoDB\\DataTypes\\AttributeDefinition;\nuse Lalcebo\\Aws\\Params\\DynamoDB\\DataTypes\\KeySchemaElement;\nuse Lalcebo\\Aws\\Params\\DynamoDB\\DataTypes\\ProvisionedThroughput;\n\ntry {\n    $sdk = new Sdk([\n        'endpoint' =\u003e 'http://localhost:8000',\n        'region' =\u003e 'us-west-2',\n        'version' =\u003e 'latest'\n    ]);\n    \n    $dynamodb = $sdk-\u003ecreateDynamoDb();\n    \n    $createTable = new CreateTable(\n        'Music',\n        [\n            new AttributeDefinition('Artist', AttributeDefinition\\AttributeType::STRING),\n            new AttributeDefinition('SongTitle', AttributeDefinition\\AttributeType::STRING),\n        ],\n        [\n            new KeySchemaElement('Artist', KeySchemaElement\\KeyType::HASH),\n            new KeySchemaElement('SongTitle', KeySchemaElement\\KeyType::RANGE),\n        ],\n        null,\n        null,\n        null,\n        new ProvisionedThroughput(10, 5)\n    );\n    \n    $result = $dynamodb-\u003ecreateTable($createTable-\u003etoArray());\n    print_r($result);\n} catch (Throwable $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n## About\n\nI'll try to maintain this project as simple as possible, but pull requests are welcomed!\n\n## License\n\nThe MIT License (MIT). Please see [License File][link-license] for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/lalcebo/aws-sdk-php-params.svg?style=for-the-badge\u0026logo=Packagist\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge\u0026color=blue\n[ico-downloads]: https://img.shields.io/packagist/dt/lalcebo/aws-sdk-php-params.svg?style=for-the-badge\n[ico-tests]: https://img.shields.io/github/workflow/status/lalcebo/aws-sdk-php-params/Tests?style=for-the-badge\u0026label=tests\u0026logo=github\n[ico-style]: https://img.shields.io/github/workflow/status/lalcebo/aws-sdk-php-params/Coding%20Standards?style=for-the-badge\u0026label=PSR-12\u0026logo=github\n\n[link-packagist]: https://packagist.org/packages/lalcebo/aws-sdk-php-params\n[link-license]: LICENSE\n[link-downloads]: https://packagist.org/packages/lalcebo/aws-sdk-php-params\n[link-tests]: https://github.com/lalcebo/aws-sdk-php-params/actions/workflows/tests.yml?query=branch%3Amaster\n[link-style]: https://github.com/lalcebo/aws-sdk-php-params/actions/workflows/php-cs-fixer.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalcebo%2Faws-sdk-php-params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalcebo%2Faws-sdk-php-params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalcebo%2Faws-sdk-php-params/lists"}