Download the PHP package lowem/geoserver-php without Composer
On this page you can find all versions of the php package lowem/geoserver-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package geoserver-php
Geoserver PHP
This is a PHP wrapper for Geoserver
📝 Table of Contents
- About
- Changelog
- Getting Started
- API Usage
- Authors
🧐 About
This project was created to help developers easily interact with the geoserver API.
🏁 Getting Started
These instructions will get you a copy of Geoserver PHP up and running.
Prerequisites
In order to install this package you have to install composer
which can be done by following the steps based on your system here.
If you have not done so already run composer init
in the root of your project directory, do so now to start using composer. Just follow the prompts as they appear.
Installing
To install Geoserver PHP run the command below while in your project root.
Create a new PHP file and add the code below to the top of the file to automatically load in the package as well as any others you may have installed. The use
statement prevents you from having to type in the full namespace of the package.
🎈 API Usage
Workspace new Workspaces(baseURL)
-
getAll()
- Returns a JSON object of all the workspaces available along with each one's attributes.- Example:
-
create(workspaceName)
- Creates a new workspace.- Example:
-
get(workspaceName)
- Returns the attributes of a specific workspace.- Example:
-
update(currentWorkspaceName, newWorkspaceName)
- Rename a specific workspace.- Example:
delete(workspaceName, recurse)
- Deletes a specific workspace and has a boolean option (recurse
) to delete all the stores within.- Example:
CoverageStores new CoverageStores(baseUrl)
-
getAll(workspaceName)
- Returns a JSON object of all stores available in a specific workspace.- Example:
-
create(data)
- Create a new coverage store by inputting a key value pair array of attributes- Example:
-
get(workspaceName, store)
- Get a coverage store while outputting the result using JSON.- Example:
-
update(workspaceName, store, data)
- Update a coverage store by inputting a key value pair array of attributes.Note: You only need to supply the fields that you would like to update.
- Example:
geoTiffUpload(workspaceName, store, absFilePath)
- Add geoTiff file to a store.- Example:
DataStores new DataStores(baseUrl)
shapeFileUpload($workspaceName, $store, $absFilePath)
- Uploads ShapeFile to a store- Example:
✍️ Authors
- @Lowe-Man - Idea & Initial work
See also the list of contributors who participated in this project.