Download the PHP package rbdwllr/atlantic-city without Composer

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

Atlantic City

Actions Status codecov PHP Version Support

A Composer based WordPress plugin which displays lyrics from the song Atlantic City in the WordPress admin.

This plugin was created to show developers how to create WordPress plugins which are hosted on Packagist and work with Composer friendly WordPress frameworks like Dusty.

It also highlights how to write unit tests for WordPress plugins using WP_Mock and how to integrate with static analysis tools like PHPStan.

Composer Setup

There is only one difference between a WordPress plugin built with Composer compared to a standard PHP package, which is the package type. With WordPress plugins you set the type to wordpress-plugin in the Composer.json file.

This simply tells Composer friendly WordPress frameworks how to handle the package, instead of putting the package in the vendor folder it will put the package in the WordPress plugins directory. See WPackagist for more details on this.

Unit Tests with WP_Mock

To write unit tests for WordPress you need to use a package called WP_Mock. It is an extension of PHP Unit which allows you to mock WordPress custom function calls.

For instance this library's unit tests mock the is_rtl() function which tells WordPress if the site's text runs from right to left or left to right.

To use WP_Mock you need to create a custom bootstrap file and extend the WP_Mock test case class rather than the PHP Unit one.

WP_Mock also comes with some nice features which allow you to check whether WordPress actions or filters have been called.

Other Code Analysis Tools

This plugin integrates with a number of static analysis tools, including PHP Code Sniffer and PHP Mess Detection, which will help improve the code quality of the WordPress plugins you produce.

It also shows you how to integrate with PHPStan to add some type safety to your code. This requires a small amount of customisation to handle WordPress so there is a szepeviktor/phpstan-wordpress package which extends PHPStan for WordPress.


All versions of atlantic-city 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 rbdwllr/atlantic-city contains the following files

Loading the files please wait ....