Download the PHP package nikapps/bazaar-push without Composer
On this page you can find all versions of the php package nikapps/bazaar-push. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nikapps/bazaar-push
More information about nikapps/bazaar-push
Files in nikapps/bazaar-push
Package bazaar-push
Short Description a robot based on Laravel framework for CafeBazaar developer panel which regularly pushes information about your apps on your mobile phone or other clients via PushBullet.
License MIT
Informations about the package bazaar-push
BazaarPush
BazaarPush is a wrapper based on the popular Laravel Framework which regularly logs into your CafeBazaar accounts, parses pages and pushes reports of new events such as sales on to your devices (via PushBullet).
Installation
Would you rather a video (in Persian) ? Aparat
Using composer, add this package dependency to your Laravel's composer.json :
Update composer :
Add this package provider in your providers array [app/config/app.php]
:
Run migrations for this package, this will add a table to your database named bazaar_sale
which keeps track of your sale records.
Run :
Publish configuration file. Run :
Run :
if you see a bazaarpush
command namespace, you are all set to go !
Configuration
Open [app/config/packages/nikapps/bazaar-push/config.php]
.
Setup your CafeBazaar credentials, each one of them as an associative array like the example below :
Setup your PushBullet accounts like the example, get your PushBullet API key from PushBullet
Adding Cronjob
This cronjob runs the checking command each 20 minutes and fetches the new sales from CafeBazaar. Also, it will report new events as a push to your devices. Don't forget to change the artisan path :)
Probable issues
- This project parses CafeBazaar pages and fetches required data from them, if CafeBazaar changes the current panel layout we need to change the matching Regular Expression patterns. Our recomendation is to set a watcher on this project to keep up with the updates.
- At this moment CafeBazaar just gives the latest 100 sale records, so if you have more than 100 sale records in 20 minutes (#RichKidsOfIran !), you'll lose some of the records.
Future
Pushing the daily income and also new comments. Wanna contribute ? simply fork this project and make a pull request !
Dependencies
License
This project released under the MIT License.
Donation
All versions of bazaar-push with dependencies
illuminate/support Version 4.2.*
joetannenbaum/phpushbullet Version ~1.0
fisharebest/ext-calendar Version 1.*