CakePHP Shipping Resources

This is a work-in-progress collection of shipping extensions for CakePHP.

Currently it contains a:

  • UPS DataSource w/ Example UPS Model
  • UPS Component
  • Fedex DataSource w/ Example Fedex Model
  • Fedex Component

All extensions only retrieve estimated shipping rates at this time.

I recommend using the DataSources as that is the more 'Cake' way to build your app. If you want to be lazy then just use the components.

Although it is a work in progress, the code should work. I just may change how it will work later.

 

Install

  • Get a developer account on UPS and/or FedEx.
  • Config the datasource in your /app/config/database.php file (look to source for example).
  • Use the models: var $uses = array('Ups', 'Fedex');

Usage

Check out the examples within the source code.

Source

Please visit GitHub for source: http://github.com/shama/CakePHP-Shipping.