Download the PHP package fredbradley/php-steer-api without Composer

On this page you can find all versions of the php package fredbradley/php-steer-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 php-steer-api

PHP Wrapper for STEER Tracking Assessments API

with Laravel Discovery Support

Latest Version on Packagist Total Downloads GitHub Actions

STEER Education are in the process of developing an API to access the assessment results for pupils. I am helping them with this as we have already many of the building blocks in place with Cranleigh School's Pastoral Module.

This package is a PHP wrapper to the STEER API. Any suggestions or improvements are welcome both in terms of data output and the fluency of interacting with the code.

Installation & Requirements

This package requires PHP 8.2 and above.

You can install the package via composer:

Usage

If within a Laravel Application with Laravel Discovery turned on

You will need to add the following to your .env file:

The config file is publishable, but you shouldn't need to change anything.

Dependency Injection

The package will automatically register the SteerConnector class as a singleton. You can then use the SteerConnector class as a dependency in your classes.

Facade

There is a facade that goes with the package if that's how you choose to work. Example:

If using as a standalone package in any PHP application

This will return an object with a data property which is an array of objects. Each object is the STEER tracking assessment result.

The second argument in getAssessmentData (year) is optional and will default to the current academic year if not set. The STEER API carries data for 5 yars.

Filters available are:

With no filters set, the API will return all results for the current academic year.

See the example output here.

This package uses the Saloon API package to make the HTTP requests. You can read more about that package here.

Caching

By default the package will cache unique results (based on query) for 10 minutes. It uses the Local Filesystem cache driver from Saloon. You can read more about that here.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of php-steer-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
league/flysystem Version ^3.15
saloonphp/cache-plugin Version ^3.0
saloonphp/saloon Version ^3.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 fredbradley/php-steer-api contains the following files

Loading the files please wait ....