Download the PHP package altrntv/yandex-static-api without Composer

On this page you can find all versions of the php package altrntv/yandex-static-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yandex-static-api

Yandex Static API for Laravel

Packagist Version GitHub Actions Workflow Status Packagist Downloads

A simple and fluent PHP client for working with the Yandex Static Maps API, built for Laravel. Generate static map images with points, figures, zoom levels, and themes — all via a fluent, expressive interface.

Installation

Install the package via Composer:

Configuration

Publish the configuration file:

This will create a config/yandex-static-api.php file:

Then, set your API key in the .env file:

Usage

You can fluently build a map request using the provided methods.

Supported Parameters

Parameter Description Example
point Longitude and latitude of the map center in degrees. new Point(longitude: 32.810152, latitude: 39.889847)
boundingBox Alternative method for setting the map viewport. Defined as lower-left and upper-right coordinates. new BoundingBox(new Point(...), new Point(...))
span Range of the map viewport by longitude and latitude (in degrees). ->span(10)
zoom Map zoom level (0–21). ->zoom(10)
size Height and width of the requested map image (in pixels). new Size(width: 650, height: 450)
scale Coefficient for scaling map objects. Fractional values from 1.0 to 4.0. ->scale(1)
placemarks Definitions of one or more markers, including coordinates, style, color, size, and optional content. [new Placemark(new Point(...), style: PlacemarkStyle::Pm, color: PlacemarkColor::Pink, size: PlacemarkSize::Large, content: 100)]
figures Geometric figures (polylines and polygons) with coordinates, line color/thickness, and fill color. [new Line(coordinates: [...], lineColor: '00FF00A0', lineWidth: 1, borderColor: '00FF00A0', borderWidth: 2), new Polygon(...)]
language Map localization. Language::RussianRussia
style Map styling and customization of objects’ appearance tags.any:poi;transit_location\|elements:label.text.fill\stylers.color:DD0000
theme Theme of the requested map image (light or dark). Theme::Light
mapType Predefined map style modes (map, driving, transit, admin). MapType::Map

Testing

Contributing

Contributions are welcome! If you’d like to improve this package, please fork the repository and open a pull request. Bug fixes, new features, and documentation improvements are all appreciated.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of yandex-static-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package altrntv/yandex-static-api contains the following files

Loading the files please wait ...