Download the PHP package pdga/exception without Composer

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

php-exceptions

Branching for features and bug fixes

When creating a new feature or bug fix, you will typically start by ensuring you are on the develop branch and use the following command to create your new branch:

If there is a Jira ticket for your task then using that ticket number and title is a good candidate for your branch name but as long as it is clear what your branch is for then you can use anything you wish.

Note that you do not always have to branch off of develop, for instance if you are making a change to something that isn't merged into develop yet you will want to branch off of that other existing branch. It is important to remember which branch you branched off of so that you merge back into that branch.

Once your changes are committed and pushed up, you are ready to make a Pull Request on GitHub. In your web browser, navigate to https://github.com/PDGA/php-exceptions/pulls and click New Pull Request. Ensure that the branch selected in the base dropdown is the branch you branched off of, and the option selected in the compare dropdown is your branch. Click Create Pull Request and add a description of your change in the Add a description section. Make sure you select at least two people as reviewers and then click Create Pull Request below the description box to open the Pull Request.

Merging a Pull Request

Once at least two people have approved your Pull Request it may be merged. There are two ways to do this: You can either use the GUI on GitHub to automatically merge your branch into the branch you selected as base and then subsequently delete your branch, or you can use the git command line to do the same.

Using GitHub

The Merge pull request button on GitHub is at the bottom of the main Pull Request page and once clicked it will turn into a Delete Branch button. After the branch is deleted you should change which branch you are working in locally to the one you select as base and run the following commands:

Using git command line

To use the git command, first change your current working branch to your base branch. Then use the following command to merge your branch.

Once the merge is complete and any conflicts have been resolved and committed you must push up the base branch.

NOTE: Changes can not be committed and pushed directly to develop from the command line, so if your base branch was develop please see the above instructions for using the GitHub GUI for merging.

At this point you can delete your branch from the origin:

After merging and deleting remotely

After deleting the branch from the origin, either manually or via GitHub, make sure to delete it locally:

Releasing a new version

To release a new version of the repository, all changes need to be merged into develop via a Pull Request. Changes can not be committed and pushed directly to develop from the command line, so a Pull Request is required. When you intend to release a new version you will also want to update the CHANGELOG.md file with a list of changes made under the new version number you intend to release (See below for information about version numbers). Once all changes have been merged into develop it needs to be merged into main, again via a Pull Request. Once everything is merged into main a new tag can be created for the repository and pushed.

Creating a new tag

A new tag for the repository should be created using the following naming scheme:

The major version should be incremented whenever breaking changes are added to the repository code. The minor version should be incremented when non breaking, non bug fix changes are made to the repository code. The bug fix version should be incremented when only bug fixes are added to the repository code. Note that incrementing a version number sets all version number to the right of that number to 0. For example, if a breaking change is made to version `1.4.29` you would go from `1.4.29` to `2.0.0`, NOT `2.4.29`. To create a new tag, use the following command from the command line: followed by ## Using the package in other applications This package can be used in other PHP applications via Composer. It is available for inclusion via Composer from Packagist. ### Pushing a new version of the package to Packagist This package is already set up on Packagist, which watches the repository for new tag and automatically creates a new release version for use via Composer (The Packagist page can be found at [https://packagist.org/packages/pdga/exception](https://packagist.org/packages/pdga/exception)). Therefore, the simple act of pushing a new tag to the repository will trigger a new version to be available in Composer. Sometimes it can take a bit of time for the new version to become available. You can verify that the new version is available on the Packagist page. ### Adding the package to another application To add the package to an application's Composer dependencies, use the following Composer command: You will also use the above command to update the package if it is already being used in your application but the major version number has been changed. If you want to update an existing dependency on this package and only the minor or bug fix version has been changed you can use the following command in that application: The above commands are very simple, however there are many options as far as dictating which versions are installed that can be used. For more information see [the official Composer documentation](https://getcomposer.org/doc/articles/versions.md#writing-version-constraints). ## Install Composer Dependencies ## Code Formatting Standards #### Run PHP_CodeSniffer to see the existing styling issues. - [CLI Reference](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#getting-help-from-the-command-line) #### Run the formatter to automatically fix the styling issues that can be fixed. - [CLI Reference](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically#using-the-php-code-beautifier-and-fixer)

All versions of exception with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
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 pdga/exception contains the following files

Loading the files please wait ....