DAYTONA BEACH, Fla. -- Joe Gibbs Racing announced Thursday that they've reached a multi-year contract extension with driver Denny Hamlin and primary sponsor FedEx.

Team officials did not make the terms of the contract official. Hamlin has spent his entire 11-year Monster Energy NASCAR Cup Series career with JGR after making his debut in 2005.

"FedEx has been with me for my entire career, and I'm honored to have them continue as the sponsor of the No. 11 team," said Hamlin. "As a racer, you only dream of an opportunity to compete for wins and championships at the highest level, and I have been fortunate to do that with FedEx and JGR for more than a decade."

FedEx joined the organization when it jumped into NASCAR racing for the 2005 season. The partnership has been successful, with Hamlin scoring 29 points-paying victories since 2006, including the 2016 Daytona 500. He has qualified for NASCAR's playoffs 10 times in his career.

"FedEx has been synonymous with the No. 11 car and Denny Hamlin for many years, and together we have enjoyed great successes on and off the race track," said Patrick Fitzgerald, senior vice president of FedEx Integrated and Marketing Communications. "The FedEx Racing program provides the unique opportunity for us to engage our team members and customers, as well as make a positive impact in the community. We are proud to extend this relationship with Coach Gibbs and the entire Joe Gibbs Racing organization."

Hamlin is the second-longest tenured driver with his current team in NASCAR, behind only Jimmie Johnson, who joined Hendrick Motorsports in 2001.

"FedEx has been essential to the growth and stability of Joe Gibbs Racing through the years," said team owner Joe Gibbs. "They are the standard-bearer for how a company's involvement in NASCAR can meet and exceed business objectives through commitment to success in all facets of the relationship."

In addition to sponsoring Hamlin, FedEx announced that they will donate $111 for every lap Hamlin leads and $11,000 for every race win to Safe Kids Worldwide, a nonprofit working to protect kids on the road, at home, and at play. If Hamlin wins the championship, FedEx will contribute an additional $111,000 in Hamlin's name.