Atom Packages Directory

a package directory for a text editor of the 21st Century

Drunken Php by Jan T. Sott

Install with:
    apm install drunken-php
  

Drunken PHP for Atom

apm apm apm Travis David

Description

PHP is often criticized for having an inconsistent syntax and this is exactly what Drunken PHP aims at. It’s a set of alternative command completions, including aliases for ill-formed syntax. Read the Aliases section below for examples.

Installation

apm

Using Git

  1. Change directory cd ~/.atom/packages/
  2. Clone repository git clone https://github.com/idleberg/atom-drunken-php drunken-php

Usage

Aliases

You can tell apart Drunken PHP from proper syntax from the %-prefix displayed in the command completion window. Aliases have been broken up into the following categories:

Prince Versions

Named after the Prince Emulator in Douglas Coupland’s Microserfs, you can substitute any to with the number 2 and vice versa.

Examples:

PHP Alias
bin2hex bintohex
cal_to_jd cal2jd

Spacing

Enables you to type commands with or without spacing. Probably obsolete due to fuzzy completions.

Examples:

PHP Alias
get_html_translation_table gethtmltranslationtable
getimagesizefromstring get_image_size_from_string

Spelling

Corrects common spelling mistakes.

Examples:

PHP Alias
mb_strwidth mb_strwidht
ob_get_length ob_get_lenght
phpversion phpverison

Synonyms

Makes some native syntax more descriptive

Examples:

PHP Alias
asin arc_sin (or arcsin)
asort array_sort
bzcompress bzip_compress

Word Order

The order of noun and verb is reversible

Examples:

PHP Alias
ini_get get_ini
get_class class_get

License

The MIT License (MIT)

Copyright (c) 2015 Jan T. Sott

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd

Keywords: php Suggest keywords
Fork me on GitHub