Download the PHP package kavenegar/laravel without Composer

On this page you can find all versions of the php package kavenegar/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

Kavenegar Laravel

First of all you will ned an API Key . You can get one Here.

Supported Laravel Versions:

Installation

Step 1 - Install the package

Then run following command to download extension using composer

Step 2

Head to config/app.php and add this line to the end of providers Array:

So that array must me something like this:

Then in the config/app.php and add this line to the end of aliases Array:

Step 3 - Publish

Run this command in your project dirctory:

In the message appear, find the number of Kavenegar, enter the related number then hit Enter. for Example in the below case you must enter 9 then enter:

Step 4 - Api-Key

Now you must define your API Key to project. for this head to config/kavenegar.php then put your API KEY in the code:

All Set

Usage

You can use the package where ever you want.

Then use this pattern to send SMS:

Use this pattern to send VerifyLookup SMS:

You can find all the Error handlings and API parameters and Usage methods in the KaveNegar website.

Usage in Notifications

Also you can use KavengarChannel for your notification:

create your notification:

extend your notification from KavenegarBaseNotification:

overide the toKavengar function:

you should add Notifiable trait and routeNotificationForKavenegar method in your model

Notice: IF you DO NOT add routeNotificationForKavenegar in your notifiable model then you should set your receiver in your notification :

for send verify lookup message you should use verifyLookup method for set method name and tokens:

Contribution

Bug fixes, docs, and enhancements welcome! Please let us know [email protected]

## راهنما ### معرفی سرویس کاوه نگار کاوه نگار یک وب سرویس ارسال و دریافت پیامک و تماس صوتی است که به راحتی میتوانید از آن استفاده نمایید. ### ساخت حساب کاربری اگر در وب سرویس کاوه نگار عضو نیستید میتوانید از [لینک عضویت](http://panel.kavenegar.com/client/membership/register) ثبت نام و اکانت آزمایشی برای تست API دریافت نمایید. ### مستندات برای مشاهده اطلاعات کامل مستندات [وب سرویس پیامک](http://kavenegar.com/وب-سرویس-پیامک.html) به صفحه [مستندات وب سرویس](http://kavenegar.com/rest.html) مراجعه نمایید. ### راهنمای فارسی در صورتی که مایل هستید راهنمای فارسی کیت توسعه کاوه نگار را مطالعه کنید به صفحه [کد ارسال پیامک](http://kavenegar.com/sdk.html) مراجعه نمایید. ### اطالاعات بیشتر برای مطالعه بیشتر به صفحه معرفی [وب سرویس اس ام اس ](http://kavenegar.com) کاوه نگار مراجعه نمایید . اگر در استفاده از کیت های سرویس کاوه نگار مشکلی یا پیشنهادی داشتید ما را با یک Pull Request یا ارسال ایمیل به [email protected] خوشحال کنید. ##

http://kavenegar.com


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires kavenegar/php Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kavenegar/laravel contains the following files

Loading the files please wait ....