Download the PHP
package asciisd/knet without Composer
On this page you can find all versions of the php package
asciisd/knet. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
This package used to integrate with the new Knet payment portal
Usage
Here are a few short examples of what you can do:
First Step
add HasKnet trait to the User model
Second Step
user pay() method
After finished the payment you will redirect to [/knet/response]()
you can change that from config file to make your own handler
Another Example:
you can use pay() method inside controller like this
Change Environment
you can change your environment from local to production in case you want to make sure that everything is working fine, to do that change .env file like this
Installation
You can install the bindings via Composer. Run the following command:
Run install command:
this command will install ServiceProvider, Configs and views
Run publish command:
this command will knet assets
After the migration has been published you can create the knet_transactions table by running the migrations:
KnetServiceProvider
This package provides a receipt system, but you should fill your identity details inside KnetServiceProvider => $details array
also you need to update your logo inside vendor => knet public assets
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 asciisd/knet contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.