Skip to content

Commit

Permalink
Minor documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cedwardsmedia committed May 27, 2017
1 parent 39f7dd3 commit 8e46fb4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# CNAM-CLI Changelog
All notable changes to this project will be documented in this file.

## Work in Progress
## [2.0.2] - 2017-05-27

#### Changed
- CNAM now requires EveryonePHP v1.0.2 for security fixes (https://github.com/cedwardsmedia/everyonephp/releases/tag/v1.0.2)

## [2.0.1] - 2017-05-23

#### Added
- Added manual page for `cnam`
- Added `--testconfig` and `-tc` flags to test EveryoneAPI credentials.
- Added install.sh and uninstall.sh scripts

#### Changed
- Moved source files to `src/` directory to maintain cleanliness of repo


## [2.0.0] - 2015-12-28
### [2.0.0] - 2015-12-28

#### Added
- Added `--test` flag to query the test number provided by EveryoneAPI
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Corey Edwards
Copyright (c) 2015-2017 Corey Edwards

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# CNAM-CLI v2.0.1
# CNAM-CLI v2.0.2

[![Source](https://img.shields.io/badge/source-cedwardsmedia/cnam--cli-blue.svg?style=flat-square "Source")](https://www.github.com/cedwardsmedia/cnam-cli)
![Version](https://img.shields.io/badge/version-2.0.1-brightgreen.svg?style=flat-square)
[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat-square "License")](./LICENSE)
[![Version](https://img.shields.io/badge/version-2.0.2-brightgreen.svg?style=flat-square)]()
[![License](https://img.shields.io/badge/license-BSD-lightgrey.svg?style=flat-square "License")](./LICENSE.md)
[![Gratipay](https://img.shields.io/gratipay/cedwardsmedia.svg?style=flat-square "License")](https://gratipay.com/~cedwardsmedia/)


_CNAM-CLI_ is a command-line client for [EveryoneAPI](https://www.everyoneapi.com/) written in PHP. In order to use CNAM, you must have an [EveryoneAPI account](https://www.everyoneapi.com/sign-up) with [available funds](https://www.everyoneapi.com/pricing).

## Installation
Expand Down Expand Up @@ -55,4 +56,3 @@ _CNAM-CLI_ is licensed under the **MIT License**. See LICENSE for more.

---
**Disclaimer**: _CNAM-CLI_ is not endorsed by, sponsored by, or otherwise associated with [OpenCNAM](http://www.opencnam.com), [EveryoneAPI](http://www.everyoneapi.com), or [Telo USA, Inc](http://www.telo.com).

19 changes: 17 additions & 2 deletions src/cnam.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
#!/usr/bin/php
<?php

/*
* Copyright (c) 2015-2017, Corey Edwards
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// Turn off error reporting
ini_set('display_errors', 0);
error_reporting(E_ALL & ~E_NOTICE);

// Define our constants
define('APPNAME', 'CNAM');
define('VERSION', '2.0.1');
define('VERSION', '2.0.2');
define('APIVersion', '1');
define('DEVGITHUB', 'https://www.github.com/cedwardsmedia/cnam');
define('DEVELOPER', 'Corey Edwards');
define('COPYRIGHTYEAR', '2014 - 2015');
define('COPYRIGHTYEAR', '2014 - 2017');
define('COPYRIGHT', '&copy; ' . COPYRIGHTYEAR . ' ' . DEVELOPER);
define('OS', strtoupper(php_uname('s')));

Expand Down

0 comments on commit 8e46fb4

Please sign in to comment.