https://github.com/thinkverse/exercism-php
Solutions to Exercism's PHP track
https://github.com/thinkverse/exercism-php
exercism exercism-php exercism-solutions exercism-track php
Last synced: 8 months ago
JSON representation
Solutions to Exercism's PHP track
- Host: GitHub
- URL: https://github.com/thinkverse/exercism-php
- Owner: thinkverse
- Created: 2022-04-14T07:24:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T22:21:18.000Z (about 3 years ago)
- Last Synced: 2025-03-17T00:22:44.402Z (about 1 year ago)
- Topics: exercism, exercism-php, exercism-solutions, exercism-track, php
- Language: PHP
- Homepage: https://exercism.org/profiles/thinkverse
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exercism PHP Track
## Running the tests
1. Go to the root of your PHP exercise directory, which is `/php`.
To find the Exercism workspace run
➜ exercism debug | grep Workspace
1. Get [PHPUnit] if you don't have it already.
➜ wget -O phpunit https://phar.phpunit.de/phpunit-9.phar
➜ chmod +x phpunit
➜ ./phpunit --version
2. Execute the tests:
➜ ./phpunit file_to_test.php
For example, to run the tests for the Hello World exercise, you would run:
➜ ./phpunit HelloWorldTest.php
[PHPUnit]: http://phpunit.de
## Submitting your solution
You can submit your solution using the `exercism submit filename.php` command.
This command will upload your solution to the Exercism website and print the solution page's URL.
It's possible to submit an incomplete solution which allows you to:
- See how others have completed the exercise
- Request help from a mentor
## Need to get help?
If you'd like help solving the exercise, check the following pages:
- The [PHP track's documentation](https://exercism.org/docs/tracks/php)
- [Exercism's support channel on gitter](https://gitter.im/exercism/support)
- The [Frequently Asked Questions](https://exercism.org/docs/using/faqs)
Should those resources not suffice, you could submit your (incomplete) solution to request mentoring.
To get help if you're having trouble, you can use one of the following resources:
- [/r/php](https://www.reddit.com/r/php) is the PHP subreddit.
- [StackOverflow](https://stackoverflow.com/questions/tagged/php) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.