Download the PHP package thienhaxanh2405/alego-api-wrapper without Composer

On this page you can find all versions of the php package thienhaxanh2405/alego-api-wrapper. 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 alego-api-wrapper

Alego Api Wrapper

Wrapper này mình viết để tiện cho việc gọi API sang hệ thống Alego.

Link Github

Tác giả

thienhaxanh2405 [email protected]

http://thienhaxanh.info

Yêu cầu

Cài đặt

Qua composer: composer require thienhaxanh2405/alego-api-wrapper

Để sử dụng require_once "/path/to/vendor/autoload.php";

Đối tượng (Object)

Hằng khai báo sẵn (Constant)

Thông tin kết nối

Bạn cần đăng ký tài khoản đại lý tại http://alego.vn. Sử dụng thông tin kết nối để khởi tạo đối tượng Account.

Khởi tạo đối tượng Client để thực hiện các giao dịch

Sử dụng

Mua thẻ cào điện thoại

Khởi tạo một đối tượng \AlegoApiWrapper\Resource\Buy, cần tối thiểu các tham số

Ví dụ mua 01 thẻ Viettel mệnh giá 100 000đ.

Nạp tiền điện thoại

Khởi tạo một đối tượng \AlegoApiWrapper\Resource\Buy, cần tối thiểu các tham số

Ví dụ nạp tiền cho thuê bao: 0987 802 175 của nhà mạng Viettel số tiền 100 000đ.

Mua mã thẻ Game

Khởi tạo đối tượng \AlegoApiWrapper\Resource\Buy, cần tối thiểu các tham số

Ví dụ mua mã thẻ FPT Gate mệnh giá 100.000đ

Mua thẻ Visa trả trước

Cập nhật trong thời gian tới

Mua thẻ Battle Net

Cập nhật trong thời gian tới

Kiểm tra giao dịch

Sử dụng mã referOrder trên hệ thống của bạn để tham chiếu tới giao dịch trên hệ thống Alego.

Ví dụ bạn kiểm tra có mã trên hệ thống của bạn là: _order5a119e3c6cfb0

Kiểm tra số dư tài khoản

Tests

Test case sẽ được bổ sung trong thời gian tới

Hỗ trợ - giải đáp thắc mắc

Wrapper vẫn còn nhiều thiếu sót hoặc bug mà mình chưa tìm ra, các bạn vui lòng tạo issue hoặc liên hệ mình qua email: [email protected].

License

Mình viết Wrapper này để phục vụ mục đích công việc cá nhân, tuy nhiên mình cũng không ngần ngại việc công khai và chia sẻ source này. Rất mong wrapper này sẽ có một chút hữu ích nào đó cho công việc của các bạn.

Mọi việc chia sẻ, góp ý, phân phối lại source này vui lòng theo giấy phép MIT.

Trường hợp các bạn cứ thế lấy và sử dụng, cho vào project.... mà không theo giấy phép MIT thì mình cũng vẫn chào đón nhé =))


All versions of alego-api-wrapper with dependencies

PHP Build Version
Package Version
No informations.
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 thienhaxanh2405/alego-api-wrapper contains the following files

Loading the files please wait ....