Car2DB SDK
Help section for developers that use Car2DB`s databases.
Wordpress Car2DB Make, Model, Serie selector widget
Car Make, Model, Serie selection widget with ajax autocomplete from the database. Uses Car2DB data structure.
- Clone repo from GitHub: https://github.com/basebuy/car2db-wordpress-plugin
- Upload `car2db` plugin folder to the `/wp-content/plugins/` directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Place Car2DB widget to WordPress theme
Vehicle API SDK PHP
A ready to use example of Car2DB API implemented with PHP using Curl.
- Clone repo from GitHub: https://github.com/basebuy/basebuy-auto-sdk-php
- Send email to support@car2db.com and ask for API_KEY (access key for API).
- Insert the API_KEY in sample.php and run it.
- Write your script to interact with the API based on example.
Form example Car2DB implemented with PHP
Form allows to select Make > Model > Generation > Series > Trim > Equipment.
Data is loaded via ajax, form code on PHP without using frameworks.
Setup access to the database in db.php
Download example webix_car2db_php_example_v1.0.zip
Thanks to Andrew Webix.
Autobasebuy module for Yii1 framework
Installation guide
- Download the module autobasebuy for Yii: Download
- Unzip to folder /protected/modules/
- Add module to your application configuration:
return [ 'modules' => [ 'autobasebuy', ], ]
- The module view (interconnected lists) will be available at: http://your_website.com/autobasebuy/auto/index/
Autobasebuy module for Laravel
Install repo: https://github.com/bigperson/auto-base-buy
Thanks to Anton Kartsev.
MySQL DB import
Instructions for database installation to the server.
- Purchase our database.
- Download the MySQL dump with link in the email.
- Unzip database.
- Upload unziped .sql file to the server via FTP or another way.
- Connect server via SSH and change path to the folder with uploaded .sql file.
- Run import script:
mysql -uUSER -pPASS BASE < xxx.sql USER - database user name in MySQL PASS - user`s password in MySQL BASE - database name in MySQL, where the data will be inserted xxx.sql - uploaded .sql file name with database