PHPackages                             robwdwd/sightline-api-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. robwdwd/sightline-api-bundle

ActiveSymfony-bundle[Security](/categories/security)

robwdwd/sightline-api-bundle
============================

Sightline API Symfony Bundle.

v1.0.1(5mo ago)043MITPHPPHP &gt;=8.3

Since Sep 4Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/robwdwd/sightline-api-bundle)[ Packagist](https://packagist.org/packages/robwdwd/sightline-api-bundle)[ Docs](https://github.com/robwdwd/sightline-api-bundle)[ RSS](/packages/robwdwd-sightline-api-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

SightlineApi Symfony Bundle
===========================

[](#sightlineapi-symfony-bundle)

Symfony Bundle for interfacing with the Sightline APIs.

What is the SightlineApi Bundle?
--------------------------------

[](#what-is-the-sightlineapi-bundle)

SightlineApi is a Symfony bundle to interface with Sightline deployments using REST, Web Services or SOAP.

Features
--------

[](#features)

SightlineApi supports the following:

- Support for Sightline REST API as a service.
- Support for Sightline Web services API as a service.
- Support for Sightline SOAP API as a service.
- Optional caching of Sightline responses.
- Currently testing with Sightline 9.7 but should work with most 9.x versions and above.

Requirements
------------

[](#requirements)

SightlineApi PHP Class requires the following:

- PHP 8.1 or higher
- symfony/http-client
- symfony/cache
- ext/dom
- ext/soap

Installation
------------

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require robwdwd/sightline-api-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require sightline-api-bundle
```

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Robwdwd\SightlineApiBundle\SightlineApiBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Configuration is done in config/packages/robwdwd\_sightline\_api.yaml although this can be any filename.

```
sightline_api:
    hostname:   '%env(string:SIGHTLINE_HOSTNAME)%'
    wskey:      '%env(string:SIGHTLINE_WS_KEY)%'
    resttoken:  '%env(string:SIGHTLINE_REST_TOKEN)%'
    username:   '%env(string:SIGHTLINE_SOAP_USERNAME)%'
    password:   '%env(string:SIGHTLINE_SOAP_PASSWORD)%'
    wsdl:       '%env(string:SIGHTLINE_SOAP_WSDL)%'
    cache:      true
    cache_ttl:  300
```

Then in your .env.local (or any other Environment file you wish to use this in) add the following

```
SIGHTLINE_HOSTNAME="sp.example.com"
SIGHTLINE_WS_KEY="pieWoojiekoo2oozooneeThi"
SIGHTLINE_REST_TOKEN="Yohmeishuongoh0goeYu9haeph9goh8oogovaeth"
SIGHTLINE_SOAP_USERNAME="user"
SIGHTLINE_SOAP_PASSWORD="Password1234"
SIGHTLINE_SOAP_WSDL="PeakflowSP.wsdl"
```

Caching
-------

[](#caching)

By default the bundle does not cache the responses from Sightline/SP. Setting cache to to true in the configuration will cache the responses in the cache.app pool. By default it caches the response for five minutes (300 seconds). You can change this with the cache\_ttl config setting.

You can turn on and off the cache in the current instance using the `setShouldCache(bool)` function. `$restApi->setShouldCache(false)`

If you are using the filesystem cache on your symfony application you will need to manually prune the cache to remove stale entries from time to time. You can set this up as a cron job.

```
php bin/console cache:pool:prune
```

Usage
-----

[](#usage)

[Web Services and SOAP](doc/webservices_soap.md)

[REST API](doc/rest.md)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance70

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~84 days

Total

2

Last Release

172d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.2

v1.0.1PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/e903ba42666b96d89ee98cade6216e36eb52a694622d97a51694085d1f22c126?d=identicon)[robwdwd](/maintainers/robwdwd)

---

Top Contributors

[![robwdwd](https://avatars.githubusercontent.com/u/25034043?v=4)](https://github.com/robwdwd "robwdwd (22 commits)")

---

Tags

symfonysecuritySymfony BundlenetworkingarborddosnetscoutArborSParbor sightlinesightlinepeakflow

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/robwdwd-sightline-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/robwdwd-sightline-api-bundle/health.svg)](https://phpackages.com/packages/robwdwd-sightline-api-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
