Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bvrignaud/ci-sncf
Sncf library for CodeIgniter
https://github.com/bvrignaud/ci-sncf
codeigniter navitia sncf
Last synced: 7 days ago
JSON representation
Sncf library for CodeIgniter
- Host: GitHub
- URL: https://github.com/bvrignaud/ci-sncf
- Owner: bvrignaud
- License: mit
- Created: 2017-10-02T12:12:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T14:40:30.000Z (about 7 years ago)
- Last Synced: 2023-12-16T16:14:17.057Z (about 1 year ago)
- Topics: codeigniter, navitia, sncf
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Ci-Sncf
Ci-Sncf is a php and CodeIgniter (3.x) library to use the SNCF's Open-data.
As Sncf use Navitia, you can alos use this library as an exemple to how to interact wit Navitia.## Requirements
- PHP 5.4.0 or later (5.6 or later is recommended)
- [CodeIgniter 3](https://www.codeigniter.com/)
- [Composer](https://getcomposer.org/)
- [Navitia Component](https://github.com/CanalTP/NavitiaComponent)## Installation
Using composer :```sh
/application$ composer require "canaltp/navitia":"~1.2"
```
In your CodeIgniter `/application/config/config.php` file, set `$config['composer_autoload']` to `TRUE`. [Read more](https://www.codeigniter.com/user_guide/general/autoloader.html).Copy the files from this package to the corresponding folder in your application folder. For example, copy config/sncf.php to application/config/sncf.php
Edit your `sncf.php` config file in `/application/config/sncf.php` with your Sncf account details.
Autoload the library in `application/config/autoload.php` or load it in needed controllers with `$this->load->library('sncf');`.
## Usage
In the package you will find simple example usage code in the controllers and views folders.