{"id":22785678,"url":"https://github.com/multinetinteractive/eduadmin-api-phpclient","last_synced_at":"2026-02-28T17:03:59.909Z","repository":{"id":52384489,"uuid":"119356284","full_name":"MultinetInteractive/eduadmin-api-phpclient","owner":"MultinetInteractive","description":"PHP Client to connect to the EduAdmin API (REST/OData)","archived":false,"fork":false,"pushed_at":"2025-02-25T14:26:48.000Z","size":153,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T20:09:42.733Z","etag":null,"topics":["api-client","eduadmin","eduadmin-api","odata","rest"],"latest_commit_sha":null,"homepage":null,"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/MultinetInteractive.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":"2018-01-29T08:46:56.000Z","updated_at":"2025-02-25T14:26:53.000Z","dependencies_parsed_at":"2024-11-05T07:25:22.857Z","dependency_job_id":"d0970973-9f0b-4057-8ddb-fb622db627c7","html_url":"https://github.com/MultinetInteractive/eduadmin-api-phpclient","commit_stats":{"total_commits":55,"total_committers":4,"mean_commits":13.75,"dds":0.2727272727272727,"last_synced_commit":"089ea4a720cc5cdead964cac45b42ce018a9bcd3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultinetInteractive%2Feduadmin-api-phpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultinetInteractive%2Feduadmin-api-phpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultinetInteractive%2Feduadmin-api-phpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MultinetInteractive%2Feduadmin-api-phpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MultinetInteractive","download_url":"https://codeload.github.com/MultinetInteractive/eduadmin-api-phpclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145303,"owners_count":21219966,"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":["api-client","eduadmin","eduadmin-api","odata","rest"],"created_at":"2024-12-11T23:07:15.394Z","updated_at":"2026-02-28T17:03:59.289Z","avatar_url":"https://github.com/MultinetInteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EduAdmin API Client\n\nInclude `eduadmin-api-client.php` in the pages you want to be able to use the API-client\nagainst [EduAdmin](https://www.eduadmin.se)\n\nThis will enable the global command `EDUAPI()`, which is a singleton instance of the client.\n\nDon't forget to call `EDUAPI()-\u003eSetCredentials( $api_user, $api_pass )` and then fetch a token by\ncalling `EDUAPI()-\u003eGetToken()`.\n\nThis token is currently valid for two weeks, so save it somewhere safe.\n_(And never ever show it to the public)_\n\nThe token has a function to check its validity, but only against expiration. So, keep track if you get errors from the\nAPI, then you should request a new token.\n\nHere's a list of the current endpoints in the `OData`-property\n\n- Bookings\n- Categories\n- Countries\n- CourseLevels\n- CourseTemplates\n- CustomerGroups\n- Customers\n- CustomFields\n- Events\n- Grades\n- InterestRegistrations\n- Locations\n- Participants\n- PaymentTerms\n- Personnel\n- Persons\n- PriceNames\n- ProgrammeBookings\n- Programmes\n- ProgrammeInterestRegistrations\n- ProgrammeStarts\n- Regions\n- Reports\n- Subjects\n\nAll these endpoints support the functions:\n\n```php\n...-\u003eSearch(\n    $select,    // Nullable, adds the $select-parameter\n    $filter,    // Nullable, adds the $filter-parameter\n    $expand,    // Nullable, adds the $expand-parameter\n    $orderby,   // Nullable, adds the $orderby-parameter\n    $top,       // Nullable, adds the $top-parameter\n    $skip,      // Nullable, adds the $skip-parameter\n    $count      // Boolean, if true, adds number of records to result\n)\n...-\u003eGetItem(\n    $id,        // The ID (Integer) of the resource you're getting\n    $select,    // Nullable, adds the $select-parameter\n    $expand     // Nullable, adds the $expand-parameter\n)\n```\n\nThe OData-endpoints inherits from `EduAdminODataClient`, that inherits from `EduAdminRESTClient`, but this class,\nexplicitly forbids you from using the `GET`, `POST`, `PATCH`, `PUT` and `DELETE` methods.\n\nThe current endpoints in the `REST`-property is:\n\n- Booking\n- Coupon\n- Consent\n- Customer\n- Event\n- InterestRegistration\n- Organisation\n- Participant\n- Person\n- Personnel\n- ProgrammeBooking\n- ProgrammeStart\n- Report\n\nEach of these endpoints contain their own methods, but it also inherits from `EduAdminRESTClient`, so you will have\naccess to `GET`, `POST`, `PATCH`, `PUT` and `DELETE` methods.\n\nYou can check out the [API documentation](https://api.eduadmin.se/) yourself, if you want to make something yourself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultinetinteractive%2Feduadmin-api-phpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultinetinteractive%2Feduadmin-api-phpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultinetinteractive%2Feduadmin-api-phpclient/lists"}