Download the PHP package asamserver/wam without Composer

On this page you can find all versions of the php package asamserver/wam. 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 wam

WHMCS Addon Module Framework

A Laravel-inspired framework for building WHMCS addon modules with modern PHP practices and a familiar structure. This framework provides a robust foundation for developing WHMCS addons with features like routing, MVC architecture, database migrations, and hooks management.

Features

Installation

  1. Create a new directory for your addon in the WHMCS modules/addons directory:

  2. Clone this repository:

  3. Install dependencies:

  4. Set up your environment:

  5. Configure your .env file with appropriate database settings:

Quick Installation

  1. Navigate to your WHMCS modules/addons directory:

  2. Create a new addon using Composer:

Command Line Interface

The framework provides a CLI tool named asam for generating various components. Here are the available commands:

Basic Commands

Directory Structure

Creating Controllers

Controllers handle the business logic of your addon. To create a new controller:

Example controller structure:

Defining Routes

Routes are defined in the routes/web.php file:

Working with Models

Create models to interact with your database:

Example model usage:

Database Migrations

Create and run database migrations:

Example migration:

Working with Hooks

Create and manage WHMCS hooks:

Example hook:

Views and Templates

Views are stored in the resource/views directory. Render views from your controllers:

Helper Functions

The framework provides various helper functions in app/Helper/Helper.php:

Best Practices

  1. Always use namespaces as defined in the framework
  2. Follow the MVC pattern
  3. Use migrations for database changes
  4. Keep controllers thin and move business logic to services
  5. Use dependency injection where possible
  6. Log important events using the built-in logging system

Error Handling

The framework includes built-in error handling:

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Support

For support, please open an issue in the GitHub repository or contact the maintainers.


All versions of wam with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/database Version ^11.0
illuminate/support Version ^11.33
symfony/console Version ^6.0
vlucas/phpdotenv Version ^5.6
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 asamserver/wam contains the following files

Loading the files please wait ...