{"id":15067162,"url":"https://github.com/bluevertex/mapbox-api-laravel","last_synced_at":"2025-07-12T16:33:17.573Z","repository":{"id":62495409,"uuid":"113703167","full_name":"BlueVertex/mapbox-api-laravel","owner":"BlueVertex","description":"A Laravel 5+ Package for managing Mapbox Datasets and Tilesets","archived":false,"fork":false,"pushed_at":"2024-10-12T18:19:51.000Z","size":20,"stargazers_count":1,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T08:16:33.920Z","etag":null,"topics":["laravel","laravel-5-package","laravel-framework","laravel-package","mapbox","mapbox-api"],"latest_commit_sha":null,"homepage":null,"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/BlueVertex.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":"2017-12-09T21:41:17.000Z","updated_at":"2024-10-12T18:19:54.000Z","dependencies_parsed_at":"2022-11-02T11:18:09.875Z","dependency_job_id":null,"html_url":"https://github.com/BlueVertex/mapbox-api-laravel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueVertex%2Fmapbox-api-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueVertex%2Fmapbox-api-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueVertex%2Fmapbox-api-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueVertex%2Fmapbox-api-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlueVertex","download_url":"https://codeload.github.com/BlueVertex/mapbox-api-laravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829240,"owners_count":17530666,"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":["laravel","laravel-5-package","laravel-framework","laravel-package","mapbox","mapbox-api"],"created_at":"2024-09-25T01:17:24.950Z","updated_at":"2024-11-22T01:40:43.177Z","avatar_url":"https://github.com/BlueVertex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mapbox API for Laravel 5+\n\n[![Build Status](https://travis-ci.org/BlueVertex/mapbox-api-laravel.svg)](https://travis-ci.org/BlueVertex/mapbox-api-laravel)\n[![Latest Stable Version](https://poser.pugx.org/bluevertex/mapbox-api-laravel/v/stable)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)\n[![Latest Unstable Version](https://poser.pugx.org/bluevertex/mapbox-api-laravel/v/unstable)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)\n[![Monthly Downloads](https://poser.pugx.org/bluevertex/mapbox-api-laravel/d/monthly)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)\n[![License](https://poser.pugx.org/bluevertex/mapbox-api-laravel/license)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)\n\nA [Laravel](https://laravel.com/) 5+ Package for managing [Mapbox](https://www.mapbox.com/api-documentation/) Datasets and Tilesets\n\nThis library supports the listing, creation, and deletion of the following types via the Mapbox API:\n\n1. [Datasets](https://www.mapbox.com/api-documentation/#datasets)\n2. [Tilesets](https://www.mapbox.com/api-documentation/#tilesets)\n3. [Uploads](https://www.mapbox.com/api-documentation/#uploads)\n\n## Installation\n\n**Install Via Composer:**\n```\ncomposer require bluevertex/mapbox-api-laravel\n```\n\n**Laravel 5.5+**\n\nThe service provider should be automatically registered.\n\n**Laravel ≤ 5.4:**\n```\n// Laravel: config/app.php\nBlueVertex\\MapBoxAPILaravel\\MapBoxAPILaravelServiceProvider::class\n```\n\n```\n// Facade Alias\n'Mapbox' =\u003e BlueVertex\\MapBoxAPILaravel\\Facades\\Mapbox::class,\n```\n\n**Lumen:**\n```\n// bootstrap/app.php:\n$app-\u003eregister(BlueVertex\\MapBoxAPILaravel\\MapBoxAPILaravelServiceProvider::class);\n\n$app-\u003ewithFacades(true, [\n    'BlueVertex\\MapBoxAPILaravel\\Facades\\Mapbox' =\u003e 'Mapbox'\n]);\n```\n\n\n## Configuration\n\nAdd the following to your `.env` file:\n\n```\nMAPBOX_ACCESS_TOKEN=[Your Mapbox Access Token]\nMAPBOX_USERNAME=[Your Mapbox Username]\n```\n\n*Note: Make sure your Access Token has the proper scope for all the operations you need to perform.*\n\n## Usage\n\n### Datasets\n\n**List Datasets:**\n```\n$list = Mapbox::datasets()-\u003elist();\n```\n\n**Create Dataset:**\n```\n$dataset = Mapbox::datasets()-\u003ecreate([\n\t'name' =\u003e 'My Dataset',\n\t'description' =\u003e 'This is my dataset'\n]);\n```\n\n**Retrieve Dataset:**\n```\n$dataset = Mapbox::datasets($datasetID)-\u003eget();\n```\n\n**Update Dataset:**\n```\n$dataset = Mapbox::datasets($datasetID)-\u003eupdate([\n\t'name' =\u003e 'My Dataset Updated',\n\t'description' =\u003e 'This is my latest dataset'\n]);\n```\n\n**Delete Dataset:**\n```\n$response = Mapbox::datasets($datasetID)-\u003edelete();\n```\n\n**List Feature:**\n```\n$response = Mapbox::datasets($datasetID)-\u003efeatures()-\u003elist();\n```\n\n**Insert or Update Feature:**\n```\n$response = Mapbox::datasets($datasetID)-\u003efeatures()-\u003eadd($feature);\n```\n\n**Retrieve Feature:**\n```\n$response = Mapbox::datasets($datasetID)-\u003efeatures($featureID)-\u003eget();\n```\n\n**Delete Feature:**\n```\n$response = Mapbox::datasets($datasetID)-\u003efeatures($featureID)-\u003edelete();\n```\n\n### Tilesets\n\n**List Tilesets:**\n```\n// Options array is optional\n$list = Mapbox::tilesets()-\u003elist([\n\t'type' \t\t\t=\u003e 'raster',\n\t'visibility' \t=\u003e 'public',\n\t'sortby' \t\t=\u003e 'modified',\n\t'limit' \t\t=\u003e 500\n]);\n```\n\n### Uploads\n\n**Get S3 Credentials:**\n```\n// Returns S3Credentials Object\n$response = Mapbox::uploads()-\u003ecredentials();\n```\n\n**Create Upload:**\n```\n$response = Mapbox::uploads()-\u003ecreate([\n\t'tileset' =\u003e '{username}.mytilesetid',\n\t'url' =\u003e 'mapbox://datasets/{username}/{dataset}', // Or S3 Bucket URL from S3Credentials Object\n\t'name' =\u003e 'Upload Name'\n]);\n```\n\n**Retrieve Upload Status:**\n```\n$response = Mapbox::uploads($uploadID)-\u003eget();\n```\n\n**List Upload Statuses:**\n```\n$list = Mapbox::uploads()-\u003elist();\n```\n\n**Delete Upload:**\n```\n$response = Mapbox::uploads($uploadID)-\u003edelete();\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluevertex%2Fmapbox-api-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluevertex%2Fmapbox-api-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluevertex%2Fmapbox-api-laravel/lists"}