railpage / railpagecore
Railpage core code classes. More information available at https://github.com/doctorjbeam/railpagecore
Requires
- php: >=5.5.0
- doctrine/cache: ~1.6
- electrolinux/phpquery: dev-master
- emojione/emojione: ^2.1
- foolz/sphinxql-query-builder: dev-master
- genphrase/genphrase: ~1.0
- google/apiclient: ~1.0
- guzzle/http: ~3.9
- guzzlehttp/guzzle: ~5.2
- guzzlehttp/oauth-subscriber: 0.2.*
- jakeasmith/http_build_url: ^1
- lcobucci/jwt: ^3.1
- lusitanian/oauth: ~0.3
- mibe/feedwriter: ~1.0
- mjohnson/decoda: ^6.7
- monolog/monolog: ~1.12
- nilportugues/sphinx-search: dev-master
- rezzza/flickr: ~1.1
- smarty/smarty: ~3.1
- swiftmailer/swiftmailer: ~5.3
- textalk/websocket: ^1.2
- tga/simhash-php: dev-master
- zendframework/zend-config: ~2.3
- zendframework/zend-db: ~2.3
- zendframework/zend-feed: ~2.3
- zendframework/zend-http: ~2.3
- zendframework/zend-uri: ~2.3
- zendframework/zendframework1: 1.*
- zendframework/zendservice-recaptcha: ~2.0
- zendframework/zendservice-twitter: ~2.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- johnkary/phpunit-speedtrap: ~1.0@dev
This package is not auto-updated.
Last update: 2024-10-26 16:00:10 UTC
README
This repository contains the core Railpage PHP objects formerly located under their respective modules.
Since Version 3.8 the core code has been progressively split from their UI modules and re-located into a PSR-4-compliant folder and file structure.
The classes have been namespaced under the \Railpage\ namespace, for example: \Railpage\Locos\Locomotive.
Installing
If you're not using Composer, you should. We have a lot of dependencies and Composer will save you a lot of time.
To start using the core code, execute ./composer.phar require railpage/railpagecore
to grab and install.
Using
Make sure you're using Composer.
Assuming you've already included your Composer autoloader in your code, import the desired modules by placing a use
operator at the top of your .php file. For example:
use Railpage\Locos\Factory as LocosFactory; $Loco = LocosFactory::CreateLocomotive($id); $Loco = LocosFactory::CreateLocomotive(null, "NR Class", "NR121");