Examples of Service classes (11)

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)
★ 13109 Created: Jul 2017 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/User/CreateUser.php
- app/Http/Controllers/Auth/InvitationController.php
Repository: pixelfed/pixelfed (Github)
★ 2997 Created: Apr 2018 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/ProfileService.php
- app/Http/Controllers/Api/ApiV1Controller.php
Repository: pterodactyl/panel (Github)
★ 2612 Created: Dec 2016 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/Users/UserCreationService.php
- app/Console/Commands/User/MakeUserCommand.php
Repository: Bottelet/DaybydayCRM (Github)
★ 1748 Created: Jul 2016 Updated: Jun 2021 Laravel version: 7
Files in the example:
- app/Services/Invoice/InvoiceCalculator.php
- app/Http/Controllers/InvoicesController.php
Repository: spatie/freek.dev (Github)
★ 428 Created: Nov 2017 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/Twitter/TwitterServiceProvider.php
- app/Services/Twitter/Twitter.php
Repository: realodix/urlhub (Github)
★ 242 Created: Aug 2018 Updated: Jul 2021 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: officelifehq/officelife (Github)
★ 217 Created: Jan 2019 Updated: Aug 2021 Laravel version: 8
Files in the example:
- app/Services/Company/Project/CreateProjectLink.php
- app/Http/Controllers/Company/Company/Project/ProjectController.php
Repository: krayin/laravel-crm (Github)
★ 171 Created: Jun 2021 Updated: Aug 2021 Laravel version: 8
Files in the example:
- packages/Webkul/Product/src/Repositories/ProductRepository.php
- packages/Webkul/Admin/src/Http/Controllers/Product/ProductController.php
Repository: serversideup/financial-freedom (Github)
★ 88 Created: Mar 2021 Updated: Oct 2021 Laravel version: 8
Files in the example:
- app/Services/Transactions/ShowTransaction.php
- app/Http/Controllers/Web/Transactions/TransactionsController.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
Repository: prettifystudio/avatary (Github)
★ 5 Created: Sep 2021 Updated: Sep 2021 Laravel version: 8
Files in the example:
- app/Services/AvatarGenerator.php
- app/Http/Controllers/Api/AvatarController.php

Additional resources on service classes: