Skip to content

Commit

Permalink
Add v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Aug 6, 2018
1 parent 6cc74c6 commit 7562ca5
Show file tree
Hide file tree
Showing 232 changed files with 11,723 additions and 7,738 deletions.
11 changes: 0 additions & 11 deletions .gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Contributing to php-crud-api

Pull requests are welcome.

## Use phpfmt

Please use "phpfmt" to ensure consistent formatting.

## Run the tests

Before you do a PR, you should ensure any new functionality has test cases and that all existing tests are succeeding.

## Run the build

Since this project is a single file application, you must ensure that classes are loaded in the correct order.
This is only important for the "extends" and "implements" relations. The 'build.php' script appends the classes in
alphabetical order (directories first). The path of the class that is extended or implemented (parent) must be above
the extending or implementing (child) class when listing the contents of the 'src' directory in this order. If you
get this order wrong you will see the build will fail with a "Class not found" error message. The solution is to
rename the child class so that it starts with a later letter in the alphabet than the parent class or that you move
the parent class to a subdirectory (directories are scanned first).
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2016 Maurits van der Schee
Copyright (c) 2018 Maurits van der Schee

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
Loading

0 comments on commit 7562ca5

Please sign in to comment.