Skip to content

Commit

Permalink
Update for v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyneu committed Jul 11, 2024
1 parent 74a5333 commit 853e5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,3 @@ don't need to learn a new markup system.
## Note for php 8.1

For php 8.1 we swapped using Saltybeagle's package to this repo. We did this so we can more easily update and maintain the package.

### Update to composer.json

```JSON
{
"type":"package",
"package": {
"name": "unl/savvy",
"version": "master",
"source": {
"url": "https://github.com/unl/Savvy.git",
"type": "git",
"reference": "master"
}
}
}
```

1. First we added the repo to the "repositories" section in the json file
2. We then changed `"saltybeagle/savvy": "#.#",` to `"unl/savvy": "dev-master",` so we always pull from the master branch
3. We also need to add `"Savvy": "vendor/unl/savvy/src"` in the psr-0 section of the the autoload so that Savvy's namespace is used correctly
4. After all the changes are made we may need to clear the cache and re-install `composer clear-cache && composer install`

[Saltybeagle's Package](https://packagist.org/packages/saltybeagle/savvy)
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"email": "[email protected]"
}
],
"require": {
"php": "^8.1"
},
"autoload": {
"psr-0": { "Savvy": "src/" }
}
Expand Down

0 comments on commit 853e5b5

Please sign in to comment.