Add a composer.json file so this library can be installed as a package via Composer. Include all necessary metadata and instructions for installation in the README.
Example composer.json:
{
"name": "davidperez-2357/databasemethods",
"description": "File with useful methods to work with SQL, MySQL, Postgres or SQLite database made in PHP",
"autoload": {
"psr-4": {"DatabaseMethods\\": "src/"}
}
}
Affected file(s):
Benefits:
- Easy integration in external PHP projects
- Wider reach for usage
Add a
composer.jsonfile so this library can be installed as a package via Composer. Include all necessary metadata and instructions for installation in the README.Example composer.json:
{ "name": "davidperez-2357/databasemethods", "description": "File with useful methods to work with SQL, MySQL, Postgres or SQLite database made in PHP", "autoload": { "psr-4": {"DatabaseMethods\\": "src/"} } }Affected file(s):
Benefits: