{"id":21542335,"url":"https://github.com/amethyst-php/core","last_synced_at":"2025-04-10T04:24:59.132Z","repository":{"id":56946887,"uuid":"136015163","full_name":"amethyst-php/core","owner":"amethyst-php","description":"A bunch of classes used to build an amethyst package","archived":false,"fork":false,"pushed_at":"2024-03-28T17:22:28.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:43:42.854Z","etag":null,"topics":["amethyst","amethyst-package","common","laravel"],"latest_commit_sha":null,"homepage":"","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/amethyst-php.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":"2018-06-04T11:28:33.000Z","updated_at":"2024-03-27T19:59:10.000Z","dependencies_parsed_at":"2022-08-21T07:50:09.855Z","dependency_job_id":null,"html_url":"https://github.com/amethyst-php/core","commit_stats":null,"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amethyst-php%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amethyst-php","download_url":"https://codeload.github.com/amethyst-php/core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248156076,"owners_count":21056765,"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":["amethyst","amethyst-package","common","laravel"],"created_at":"2024-11-24T05:09:16.462Z","updated_at":"2025-04-10T04:24:59.111Z","avatar_url":"https://github.com/amethyst-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Config\n\n[![Action Status](https://github.com/amethyst-php/core/workflows/Test/badge.svg)](https://github.com/amethyst-php/core/actions)\n[![Amethyst](https://img.shields.io/badge/Package-Amethyst-7e57c2)](https://github.com/amethyst-php/amethyst)\n\nThis is the core of all Amethyst packages.\n\n# Requirements\n\n- PHP from 8.1\n\n## Installation\n\nYou can install it via [Composer](https://getcomposer.org/) by typing the following command:\n\n```bash\ncomposer require amethyst/core\n```\n\nThe package will automatically register itself.\n\n## Mapping the hell out of it\n\nAmethyst takes a lot of advantages by mapping all models, relations and attributes; it does soo much that it's a requirement for every package:\n\n- Each instance of Model must be converted in a readable string (e.g. classname, or morph name) and viceversa.\n- Given an instance of Model it should be possible to retrieve all relations.\n- Given an instance of Model it should be possibile to retrieve all attributes.\n\nNote: It's important to notice that we are refering to an instance of Model instead of class of Model.\n\n#### What are the benefits then?\n\nBecause having this kind of information will make a lot of things easy (for e.g. auto joins, creating views)\n\n#### How it's done and how extend it\nAll amethyst packages are automatically mapped, that's because the mapping use the configuration under `amethyst` to retrieve all models \n\nThis is done by using the package [eloquent-mapper](https://github.com/railken/eloquent-mapper).\n\n## How interact with the data\n\nThere are two ways to interact with the data: Through code or with http calls\n\n### Code\n\n\n\n### Http calls\n\nEach data has the following operation: \n    - 'Create a new record'\n    - 'Retrieve a single record'\n    - 'Update a single ecord'\n    - 'Delete a single record'\n    - 'Show multiple records'\n    - 'Remove multiple records'\n    - 'Update multiple records'\n\n## How customize the data\n\nOne of the key package used to handle data is [lem](https://github.com/railken/lem). This package provide a way to define a schema, validate, authorize, serialize and handle errors; all of this incapsulated by a class, called the `Manager`.\n\nhttps://github.com/amethyst-php/cli\n\n\n## Testing\n\n- Clone this repository\n- Copy the default `phpunit.xml.dist` to `phpunit.xml`\n- Change the environment variables as you see fit\n- Launch `./vendor/bin/phpunit`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famethyst-php%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famethyst-php%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famethyst-php%2Fcore/lists"}