{"id":18257813,"url":"https://github.com/pickleboxer/bitbucket-update-fetcher","last_synced_at":"2025-04-08T22:46:36.797Z","repository":{"id":205955845,"uuid":"715153313","full_name":"PickleBoxer/Bitbucket-Update-Fetcher","owner":"PickleBoxer","description":"PHP Update fetcher from Bitbucket downloads","archived":false,"fork":false,"pushed_at":"2023-11-07T13:41:37.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T17:57:40.094Z","etag":null,"topics":["bitbucket","download","update"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PickleBoxer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-06T15:25:38.000Z","updated_at":"2023-11-07T09:32:39.000Z","dependencies_parsed_at":"2023-11-18T00:13:16.428Z","dependency_job_id":null,"html_url":"https://github.com/PickleBoxer/Bitbucket-Update-Fetcher","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"eedc945c838222d6b85a8d9da0fefd1ea5668834"},"previous_names":["pickleboxer/bitbucket-update-fetcher"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FBitbucket-Update-Fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FBitbucket-Update-Fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FBitbucket-Update-Fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FBitbucket-Update-Fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PickleBoxer","download_url":"https://codeload.github.com/PickleBoxer/Bitbucket-Update-Fetcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941720,"owners_count":21022037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","download","update"],"created_at":"2024-11-05T10:27:47.901Z","updated_at":"2025-04-08T22:46:36.776Z","avatar_url":"https://github.com/PickleBoxer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitbucket Update Fetcher\n\nThe `UpdateFetcher` class is responsible for fetching updates from Bitbucket. It maintains information about the latest version and updates not yet installed. It also uses caching to optimize update requests and a logger instance for logging purposes. The class uses several dependencies including Composer\\Semver\\Comparator, Desarrolla2\\Cache\\CacheInterface, Monolog\\Logger, and others.\n\n## Installation\n\n- Install the library via composer pickleboxer/bitbucket-update-fetcher\n- Create an update file/method in your application with your update routine (see example/update/index.php)\n\n## Usage\n\nTo use the `UpdateFetcher` class, you need to instantiate it and then call the appropriate methods. Here's a step-by-step guide on how to use the UpdateFetcher class:\n\n1. Include the necessary files and use the UpdateFetcher class:\n\n```php\nrequire('vendor/autoload.php');\nuse BitbucketUpdateFetcher\\UpdateFetcher;\n```\n\n2. Instantiate the UpdateFetcher class:\n\n```php\n$fetcher = new UpdateFetcher();\n```\n\n3. Set the current version, workspace, repository slug, and access token:\n\n```php\n$fetcher-\u003esetCurrentVersion('0.1.1');\n$fetcher-\u003esetWorkspace('workspace');\n$fetcher-\u003esetRepoSlug('repoSlug');\n$fetcher-\u003esetAccessToken('your_access_token');\n```\n\n4. Update to the latest version:\n\n```php\n$result = $fetcher-\u003eupdate();\n```\n\n## Development Environment Setup\n\nFollow these steps to open this project in a development container using Visual Studio Code:\n\n1. Install the [Remote - Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) in Visual Studio Code.\n2. Clone the project repository to your local machine.\n3. Open the project folder in Visual Studio Code.\n4. Press `F1` to open the command palette.\n5. Select `Remote-Containers: Reopen in Container` from the dropdown.\n\nOnce the development container is up and running, you can view the application by navigating to the following URL in your web browser:\n\n```plaintext\nlocalhost:8000/example/\n```\n\n## Contributing\n\nContributions are welcome. Please submit a pull request or create an issue to discuss the changes you want to make.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickleboxer%2Fbitbucket-update-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpickleboxer%2Fbitbucket-update-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickleboxer%2Fbitbucket-update-fetcher/lists"}