Skip to content

Commit

Permalink
Add Packagist min stability setting and readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
briannesbitt committed Sep 11, 2012
1 parent b262c6c commit d59535c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
},
"autoload": {
"psr-0": { "Carbon": "." }
}
},
"minimum-stability": "dev"

This comment has been minimized.

Copy link
@Seldaek

Seldaek Sep 11, 2012

You don't really need this if you don't even have requirements. I'm not sure what got you down this track.

This comment has been minimized.

Copy link
@briannesbitt

briannesbitt Sep 11, 2012

Author Owner

Ya, gotcha. Last night, when I was testing the package and saw the command line error (wrong name or missing minimum-stability) and then read "http://getcomposer.org/doc/04-schema.md#minimum-stability", I got the impression that the setting had to go in the packages composer file. I was reading it as "allowing users to access the dev version of my package". Of course this morning seeing your comment and rereading the docs I understand its the exact reverse of that.

I was not alone in that thinking as I have seen a few others (not just random people but others in the community) add that tag to their composer file with no requirements.

}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ For fun you can also pass negative values to `addXXX()`, in fact thats how `subX
<a name="api-difference"/>
### Difference

These functions always return the **toal difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC.
These functions always return the **total difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC.

```php
// Carbon::diffInYears(Carbon $dt = null, $abs = true)
Expand Down
2 changes: 1 addition & 1 deletion readme.src.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ For fun you can also pass negative values to `addXXX()`, in fact thats how `subX
<a name="api-difference"/>
### Difference

These functions always return the **toal difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC.
These functions always return the **total difference** expressed in the specified time requested. This differs from the base class `diff()` function where an interval of 61 seconds would be returned as 1 minute and 1 second via a `DateInterval` instance. The `diffInMinutes()` function would simply return 1. All values are truncated and not rouned. Each function below has a default first parameter which is the Carbon instance to compare to, or null if you want to use `now()`. The 2nd parameter again is optional and indicates if you want the return value to be the absolute value or a relative value that might have a `-` (negative) sign if the passed in date is less than the current instance. This will default to true, return the absolute value. The comparisons are done in UTC.

```php
// Carbon::diffInYears(Carbon $dt = null, $abs = true)
Expand Down

0 comments on commit d59535c

Please sign in to comment.