Examples of Service classes (17)

Short information about service classes

Developers use a "service classes" term, usually referring to almost any PHP class related to some topic. So, you create any PHP class and then use its methods somewhere in Controllers, for example.

Repository: monicahq/monica (Github)
★ 16962 Created: Jul 2017 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/User/CreateUser.php
- app/Http/Controllers/Auth/InvitationController.php
Repository: pterodactyl/panel (Github)
★ 4072 Created: Dec 2016 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/Users/UserCreationService.php
- app/Console/Commands/User/MakeUserCommand.php
Repository: pixelfed/pixelfed (Github)
★ 3752 Created: Apr 2018 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/ProfileService.php
- app/Http/Controllers/Api/ApiV1Controller.php
Repository: Bottelet/DaybydayCRM (Github)
★ 2016 Created: Jul 2016 Updated: Jul 2022 Laravel version: 7
Files in the example:
- app/Services/Invoice/InvoiceCalculator.php
- app/Http/Controllers/InvoicesController.php
Repository: krayin/laravel-crm (Github)
★ 959 Created: Jun 2021 Updated: Aug 2022 Laravel version: 8
Files in the example:
- packages/Webkul/Product/src/Repositories/ProductRepository.php
- packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php
Repository: spatie/freek.dev (Github)
★ 521 Created: Nov 2017 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/Twitter/TwitterServiceProvider.php
- app/Services/Twitter/Twitter.php
Repository: officelifehq/officelife (Github)
★ 476 Created: Jan 2019 Updated: Jul 2022 Laravel version: 8
Files in the example:
- app/Services/Company/Project/CreateProjectLink.php
- app/Http/Controllers/Company/Company/Project/ProjectController.php
Repository: serversideup/financial-freedom (Github)
★ 420 Created: Mar 2021 Updated: Jul 2022 Laravel version: 8
Files in the example:
- app/Services/Transactions/ShowTransaction.php
- app/Http/Controllers/Web/Transactions/TransactionsController.php
Repository: nafiesl/free-pmo (Github)
★ 362 Created: Nov 2017 Updated: Jul 2022 Laravel version: 8
Files in the example:
- app/Services/InvoiceDrafts/InvoiceDraftCollection.php
- app/Http/Controllers/Invoices/DraftsController.php
Repository: realodix/urlhub (Github)
★ 316 Created: Aug 2018 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/UserService.php
- app/Http/Controllers/Dashboard/User/UserController.php
- app/Http/Controllers/Dashboard/User/ChangePasswordController.php
Repository: ploi-deploy/roadmap (Github)
★ 138 Created: May 2022 Updated: Aug 2022 Laravel version: 9
Files in the example:
- app/Services/Tailwind.php
- app/Http/Controllers/Auth/PasswordProtectionController.php
Repository: codenteq/laerx (Github)
★ 72 Created: May 2022 Updated: Aug 2022 Laravel version: 9
Files in the example:
- app/Services/Admin/InvoiceService.php
- app/Services/Admin/CompanyInfoService.php
Repository: mateusjatenee/crypto-tracker (Github)
★ 47 Created: Sep 2021 Updated: Jul 2022 Laravel version: 8
Files in the example:
- app/Services/AccountService.php
- app/Models/Account.php
Repository: prettifystudio/avatary (Github)
★ 31 Created: Sep 2021 Updated: Feb 2022 Laravel version: 8
Files in the example:
- app/Services/AvatarGenerator.php
- app/Http/Controllers/Api/AvatarController.php
Repository: ash-jc-allen/find-a-pr (Github)
★ 22 Created: May 2022 Updated: Aug 2022 Laravel version: 9
Files in the example:
- app/Services/IssueService.php
- app/Services/RepoService.php
- https://github.com/ash-jc-allen/find-a-pr/blob/master/app/Console/Commands/PreloadRepoData.php
Repository: amitavroy/doctor-app (Github)
★ 20 Created: Sep 2021 Updated: Jan 2022 Laravel version: 8
Files in the example:
- app/Services/AppointmentService.php
- app/Http/Controllers/DoctorController.php
Repository: JuanDMeGon/Laravel-from-Scratch (Github)
★ 11 Created: Apr 2020 Updated: Mar 2021 Laravel version: 8
Files in the example:
- app/Services/CartService.php
- app/Http/Controllers/CartController.php

Additional resources on service classes: